[pygtk] Win32 file chooser

Nikos Kouremenos kourem at gmail.com
Mon Mar 6 20:06:01 WST 2006


On 3/6/06, John Pye <john.pye at student.unsw.edu.au> wrote:
>
>         Hi Nikos,
>
>  Yep, I'd already seen that 'winfilechooser' typo. But it still doesn't work, and throws the exception shown in my earlier mail. The fact that you have "C:\\WINDOWS" suggests to me that you're using Windows XP and that there might me an issue with this working on one windoze but not the other (I'm using Win2k). After all you seem to be doing some pretty lowlevel stuff with C structs and all that; there could be some variation between the two versions?

yes it's WINAPI crap. from the shot I see you run not in the norma
command line prompt that windows offer. I don't know, but can you try
the normal way (start --> run "cmd" cd bablalbla foo.py)

I do not have access to a win2k machine. I tested this in my win2k3
(on x86) and it works. if you think it's just a matter of the PATH
just fix it and rerun but I doubt it. (also you could get such stuff
from env WINDIR) but that sample there is pretty basic to give you the
idea.

>  I really like the GTK filechooser, I have no problem with it. But for Windows applications to *really* look like Windows applications, they need to use the native file/open box.
Indeed. You could go with wxPython which I do not like but that looks
native as hell or if you plan to ship in 2 years you can pray
IronPython will be ready so you can access .NET SWF which is the
future.

>  BTW the button needs a label in this example as well.
Yeah, but everyone clicks a button so it doesn't have to say: "Click me!" :D

Good Luck
--
Nikos Kouremenos


More information about the pygtk mailing list