Re: os.rename copies when old is in-use - is this deliberate?

2005-12-03 Thread Jérôme Laheurte
On Sat, 03 Dec 2005 22:32:22 +1300, Tony Meyer wrote:

 os.rename(sys.executable, "d:\\python24.exe")

What happens if you specify a destination file on the same drive as the
source file ?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Still Loving Python

2005-12-13 Thread Jérôme Laheurte
On Tue, 13 Dec 2005 17:35:40 +0100, Ivan Voras wrote:

> Maybe the OP really wants a GUI builder.

> More than 5 years ago, i programmed in Visual Basic and Delphi and I 
> still miss the wonderful ease of graphically creating the user interface 
> in WYSIWYG mode. If you haven't tried it, you don't know what you're 
> missing :)

Do you miss the 75+ attributes classes and globals as well ? I'm still
forced to work with Delphi from time to time (though whenever I can do
something in Python instead, I do) and it makes me want to throw up. Sure,
the designer is nice, but when you look at the generated code...

Sorry for the harsh tone, I just think GUI builders are *evil*. Except
maybe for QT Designer, which has a nice model where you implement
callbacks by subclassing the generated classes. At least you don't have to
look at the generated code.

Anyway, if the OP is looking for a 'Python Delphi', I think Boa
constructor is just that. I can't stand it :)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Still Loving Python

2005-12-14 Thread Jérôme Laheurte
On Wed, 14 Dec 2005 08:21:30 -0800, Daniel Crespo wrote:

>> So wxPython doesn't need a runtime? I don't think so.  wxPython for me
>> sucks under Linux (built on gtk2) and I don't like its API at all. It
>> seems a bit awkward to me. Anyway... what do you mean with "much better" ?
> 
> It's much better:

> - Its portability is superior over PyGTK

Mmmh, I haven't used pyGTK a lot so I can't really compare them but in my
experience wxPython is very unstable on anything but Windows (in fact it's
not wxPython's fault but wxWidget's of course)... Seems to have gotten
better with newer releases.

> - Its look & feel is superior over PyGTK (except in Linux)

No, its look & feel is the one of the underlying platform, though I think
the term "underlying platform" has meaning only on Windows and MacOS. Of
course a Windows user will be more at ease with a wx application than with
a GTK one, but that doesn't mean Windows look & feel is better than GTK
(maybe it is, but I think it's a matter of taste).

> Under windows, only needs some dlls (they are its runtime), and works
> perfect. The same exe works on Win98, ME, 2000, XP. Of course that
> there are some differences between these OSs.

I concur, wxPython is perfect for Windows apps. It's far less than perfect
for Linux though, and I haven't tried it on MacOS yet.

Shameless plug: I once wrote a rant about wxPython (warning: flame
material ahead):

http://fraca7.free.fr/blog/index.php?2005/04/04/10-a-word-about-guis

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Still Loving Python

2005-12-14 Thread Jérôme Laheurte
On Wed, 14 Dec 2005 08:35:56 -0800, Paul Boddie wrote:

> I imagine that Jérôme was referring to code generated by pyuic. Of
> course, there are various extensions for PyQt which let you build the
> user interface directly from the XML-based descriptions.

Indeed, that's what I meant. I should have been a bit more explicit.

> P.S. Why does Google Groups have to mangle Jérôme's name

I didn't see anything wrong... Encoding problem ?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Still Loving Python

2005-12-14 Thread Jérôme Laheurte
On Wed, 14 Dec 2005 12:35:56 -0600, Brian van den Broek wrote:

> It seems to me that long tradition has it that "evil" in a context 
> such as this really is not that strong a term. See 
> .

Thanks. Next time I'll spell it 'vil', in the hope that it will
somehow prevent a flame war :)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Still Loving Python

2005-12-14 Thread Jérôme Laheurte
On Wed, 14 Dec 2005 08:53:26 +, Steve Holden wrote:

> It isn't often done, but I quite like the idea of giving users the GUI 
> builder so that they can specify their preferred task interface, at 
> least to a first approximation.

That would be a valid use for these things, prototyping the UI. Or making
mock-ups for usability testing.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python on GP2X (Linux Based Handheld Console)

2005-12-16 Thread Jérôme Laheurte
On Thu, 15 Dec 2005 08:43:34 +, Michael Sparks wrote:

> I hadn't seen any announcements regarding this, but there's a little
> device recently released called a GP2X which is a small dual CPU
> (2x200Mhz) device which runs Linux.
> 
> Anyway, I thought there might be someone in here interested to hear
> that python AND pygame have both been ported to it already (not by
> me). I've also ported some of our code to it (the bouncing cats demo
> I've shown at a couple of python conferences), and found it really nice
> to work with so far. The cats bounce at an acceptable (to me)
> framerate :-)

Nice! Another toy to buy! As if I had enough pockets left :) Considering
the threading limitations of Python, I assume it runs on the GP2X as if it
were a single 200MHz CPU... How much RAM does this thing have ?

I'm interested because I ported Python to the Sony PSP, which can run at
333Mhz and has 32Mo of RAM, and almost no OS overhead. I wondered if this
setup would be enough for pygame to run... I know of at least one person
who's trying to port pygame to PSP-Python...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python on GP2X (Linux Based Handheld Console)

2005-12-17 Thread Jérôme Laheurte
On Sat, 17 Dec 2005 02:50:29 +, Michael wrote:

> I must admit personally I wouldn't be interested in python on a PSP because
> you never know when homebrew code on a PSP is going to be locked out...

Yes, but it only concerns new buyers and people who upgrade their
firmware. Upgrading the firmware brings new functionnalities, but these
are often already implemented in some homebrew app, so I'm staying at 1.50...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Have a very Pythonic Christmasolstihanukwanzaa

2005-12-25 Thread Jérôme Laheurte
On Fri, 23 Dec 2005 07:52:54 -0800, infidel wrote:

> Happy holidays to my fellow Pythonistas.

This will never get old. Reminds me of something on Slashdot:

"Happy random day in december!"

Maybe it's next year's version.

Merry Christmas :)

-- 
http://mail.python.org/mailman/listinfo/python-list