From 36def90d0922797f356e514825c8f864bb4ce268 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 10 May 2007 23:22:27 +0000 Subject: [PATCH] The handlers for EVT_CLOSE and EVT_MENU(wx.ID_EXIT) should not be the same git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/AUI_DockingWindowMgr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wxPython/demo/AUI_DockingWindowMgr.py b/wxPython/demo/AUI_DockingWindowMgr.py index 634d08403b..eaa912928c 100644 --- a/wxPython/demo/AUI_DockingWindowMgr.py +++ b/wxPython/demo/AUI_DockingWindowMgr.py @@ -395,7 +395,7 @@ class PyAUIFrame(wx.Frame): self.Bind(wx.EVT_MENU, self.OnChangeContentPane, id=ID_TextContent) self.Bind(wx.EVT_MENU, self.OnChangeContentPane, id=ID_SizeReportContent) self.Bind(wx.EVT_MENU, self.OnChangeContentPane, id=ID_HTMLContent) - self.Bind(wx.EVT_MENU, self.OnClose, id=wx.ID_EXIT) + self.Bind(wx.EVT_MENU, self.OnExit, id=wx.ID_EXIT) self.Bind(wx.EVT_MENU, self.OnAbout, id=ID_About) self.Bind(wx.EVT_UPDATE_UI, self.OnUpdateUI, id=ID_TransparentHint) @@ -431,13 +431,13 @@ class PyAUIFrame(wx.Frame): def OnClose(self, event): - self._mgr.UnInit() del self._mgr self.Destroy() - event.Skip() + def OnExit(self, event): + self.Close() def OnAbout(self, event):