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
This commit is contained in:
Robin Dunn
2007-05-10 23:22:27 +00:00
parent 2afefd2523
commit 36def90d09

View File

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