]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid name clash with wx.App.OnExit
authorRobin Dunn <robin@alldunn.com>
Thu, 3 Feb 2005 03:09:17 +0000 (03:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 3 Feb 2005 03:09:17 +0000 (03:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/run.py

index f27591bc7144a9bb36e67c08b1a933bbf4611d26..ca9ba3eb915e6c2657d6548f42bfde820213f981 100755 (executable)
@@ -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)