15:app = gui.App() 16: 17:e = gui.Button("Hello World") 18: 19:app.run(e)
Probably better to try out either pgu, or OcempGUI.
http://www.pygame.org/projects/9/125/
http://www.pygame.org/projects/9/108/
http://pygame.org/wiki/gui
cu,
On Jan 21, 2008 2:56 PM, Bernard Quinn <bjquinniii@xxxxxxxxx> wrote:
> disclaimer: I'm in the Python Newbie category...
>
> Thank you for the suggestion. I installed wxPython to try it, but get a
> syntax error at 'file()' ?
>
>
>
> On Jan 20, 2008 9:24 PM, Ian Mallett <geometrian@xxxxxxxxx> wrote:
>
> > For wxPython? Don't use the examples unless you're desperate--they're
> ridiculously complex. If you do indeed want wxPython, do:
> >
> > import wx
> > wildcard = ".AVI Audio (*.avi)|*.avi|"\
> > "All files (*.*)|*.*"
> > def open file():
> > app = wx.PySimpleApp()
> > file_picker = wx.FileDialog(None,wildcard=wildcard,style=
> wx.FD_OPEN|wx.FD_CHANGE_DIR|wx.FD_FILE_MUST_EXIST)
> > file_picker.ShowModal()
> > path = file_picker.GetPath()
> > app.Destroy()
> > return path
> >
> > Ian
> >
>
>