Avoid name clash with wx.App.OnExit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-02-03 03:09:17 +00:00
parent 39ac28747f
commit 31a01a24c8

View File

@@ -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)