From 31a01a24c8d415612c3e12f4c064081bdba65655 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 3 Feb 2005 03:09:17 +0000 Subject: [PATCH] Avoid name clash with wx.App.OnExit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.50.0