X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fc680f47c9607873d7a3d67ed1bf82e4713a08f..54076686b939da7b0dc48b76941bcb3342dbc621:/wxPython/demo/run.py diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index f27591bc71..d0734b6c97 100755 --- a/wxPython/demo/run.py +++ b/wxPython/demo/run.py @@ -21,7 +21,7 @@ import wx # This module uses the new wx namespace 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...") @@ -58,8 +58,8 @@ class RunDemoApp(wx.App): 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 = {} @@ -115,7 +115,7 @@ class RunDemoApp(wx.App): return True - def OnExit(self, evt): + def OnExitApp(self, evt): self.frame.Close(True)