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. -- http://mail.python.org/mailman/listinfo/python-list