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

Re: [pygame] Select a File...



This example shows you how to use the file dialog.

examples/gui12.py

cheers,

On 8/1/07, René Dudfield <renesd@xxxxxxxxx> wrote:
> Hi,
>
> check out the examples directory that comes with the download pgu download.
>
> You need an App class.
>
> Kind of like this...
>
> from pgu import gui
> app = gui.App()
> e = gui.Button("Hello World")
> app.run(e)
>
>
> Check out the examples/gui*.py files for more.
>
>
> Cheers,
>
>
> On 8/1/07, Ian Mallett <geometrian@xxxxxxxxx> wrote:
> > title = gui.Label("My Title")
> > main = gui.Container()
> > #add stuff to the container...
> >
> > d = gui.FileDialog(title,main)
> > d.open()
> >
> >
> > ...doesn't crash, but I don't see anything, just a print: "gui.widget:
> > creating an App"
> >
> >
>