[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Select a File...



On 8/1/07, Dave LeCompte (really) <dave@xxxxxxxxxxxx> wrote:
"Ian Mallett" <geometrian@xxxxxxxxx> wrote:
> To everyone:  pgu works to select the file.  There are, however, a few
> glitches, like the first directory on the highest level is not listed.  I
> was also hoping for something like a popup window.  Any program with a
> 'open' function has EXACTLY what I want.  How do you do that function?

I'm still unclear about what you want, and what it is that you're trying
to accomplish.

Go to Microsoft Word. Go to File->Open.  The window that opens is what I want. 

If you're creating a non-game tool, and would like to invoke a popup
dialog box as a window independant of your main window, I still think that
wxPython's file chooser dialog is a good way to prompt the user for a
file. As was mentioned earlier, wxPython uses native controls, so the file
dialog will look familiar, whether users are running on Macs or Windows. I
have no idea what happens with KDE/Gnome/etc on Linux. Did you try
wxPython? It sounded like you did. Did the file dialog not work? Or is
that not what you want?

I tried it, but it didn't work.  I didn't spend too much time with it, though.  I don't know if it's what I want, as I have not yet seen it working.

If you're creating a game, then, as people have pointed out, you probably
don't want either tkinter or wxPython, but you want something like pgu,
which you're already looking at.

Right.  See, I am making a program that uses pygame.  Would it work to perhaps make the file chooser a subprocess? 

-Dave LeCompte

Ian