X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fc680f47c9607873d7a3d67ed1bf82e4713a08f..4693d68648fa027deeef41b13690fb6edccafab1:/wxPython/demo/run.py?ds=inline diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index f27591bc71..61143bbb86 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...") @@ -59,7 +59,7 @@ 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) + 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)