X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fc680f47c9607873d7a3d67ed1bf82e4713a08f..6a6e2822455ac3275dad20d5a0b474e4eb4b2582:/wxPython/demo/run.py diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index f27591bc71..3c27661e9e 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:", wx.version() 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)