Re: trouble with wxPython intro
- From: Anthony Irwin <nospam@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 May 2007 15:41:48 +1000
Daniel Gee wrote:
I'm trying to learn WxPython with the tutorial:
http://wiki.wxpython.org/Getting_Started
But I can't seem to get the example for events to work. I pasted the
code they had directly into an interpreter and it got a dialog to
appear and the program was able to close itself, but my own copy won't
work. As far as I can see, it isn't at all different except for the
name of the main frame, and so I differ to you for help.
--- code snipped ----
#Menu setup
filemenu = wx.Menu()
filemenu.Append(wx.ID_ABOUT,"&About","Info about the program")
Hi,
make it the following instead.
filemenu.Append(ID_ABOUT,"&About","Info about the program")
filemenu.AppendSeparator()
filemenu.Append(wx.ID_EXIT,"E&xit","Terminate the program.")
And again make it the following.
filemenu.Append(ID_EXIT,"E&xit","Terminate the program.")
--- code snipped ----
--
Kind Regards,
Anthony Irwin
http://www.irwinresources.com
http://www.makehomebusiness.com
email: anthony at above domains, - www.
.
- Follow-Ups:
- Re: trouble with wxPython intro
- From: Daniel Gee
- Re: trouble with wxPython intro
- From: 7stud
- Re: trouble with wxPython intro
- References:
- trouble with wxPython intro
- From: Daniel Gee
- trouble with wxPython intro
- Prev by Date: Re: is there a standard way to "install" egg-files under windows ?
- Next by Date: Re: Usage of the __and__ method
- Previous by thread: trouble with wxPython intro
- Next by thread: Re: trouble with wxPython intro
- Index(es):