From: Robin Dunn Date: Thu, 3 Feb 2005 03:09:17 +0000 (+0000) Subject: Avoid name clash with wx.App.OnExit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/31a01a24c8d415612c3e12f4c064081bdba65655 Avoid name clash with wx.App.OnExit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)