import sys, os
# stuff for debugging
-print "wx.VERSION_STRING = ", wx.VERSION_STRING
+print "wx.VERSION_STRING = %s (%s)" % (wx.VERSION_STRING, wx.USE_UNICODE and 'unicode' or 'ansi')
print "pid:", os.getpid()
##raw_input("Press Enter...")
menuBar = wx.MenuBar()
menu = wx.Menu()
- item = menu.Append(-1, "E&xit\tAlt-X", "Exit demo")
- self.Bind(wx.EVT_MENU, self.OnExit, item)
+ item = menu.Append(-1, "E&xit\tCtrl-Q", "Exit demo")
+ self.Bind(wx.EVT_MENU, self.OnExitApp, item)
menuBar.Append(menu, "&File")
ns = {}
return True
- def OnExit(self, evt):
+ def OnExitApp(self, evt):
self.frame.Close(True)