X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fc680f47c9607873d7a3d67ed1bf82e4713a08f..628eae0bcd7916c57847b7eab739d4cc32534ccf:/wxPython/demo/run.py?ds=sidebyside diff --git a/wxPython/demo/run.py b/wxPython/demo/run.py index f27591bc71..ca9ba3eb91 100755 --- a/wxPython/demo/run.py +++ b/wxPython/demo/run.py @@ -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)