On 28/05/2013 18:11, Charles Hartman wrote:
Thanks, Chris. My app has a wx.Frame (subclassed, of course). It's
there that I've tried Binding EVT_CLOSE, but a breakpoint in the
method I find is never reached at all, including when I use menu or
keyboard to Quit. On way I've tried is this snippet I got from
wxPyWiki. (The line that purports to add an Exit item to the File
menu does not in fact do that. Mac still keeps Quit in the MyApp menu.)
item = self.fileMenu.Append(-1,'E&xit','Terminate the program')
Shouldn't that be:
item = self.fileMenu.Append(wx.ID_EXIT,'E&xit','Terminate the
program')
To get correct cross platform behaviour.
http://wxpython.org/Phoenix/docs/html/MenuItem.html?highlight=menu#MenuItem.__init__
Werner
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG