A couple demo tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-04-23 15:58:41 +00:00
parent 2a74d1415b
commit f2a10cdc48
2 changed files with 5 additions and 4 deletions

View File

@@ -59,10 +59,10 @@ class TestPanel(wxPanel):
EVT_RIGHT_UP(self, self.OnRightClick)
EVT_MENU(self, wxID_OPEN, self.OnFileOpenDialog)
EVT_MENU_RANGE(self, wxID_FILE1, wxID_FILE9, self.OnFileHistory)
EVT_WINDOW_DESTROY(self, self.Cleanup)
def __del__(self):
def Cleanup(self, *args):
del self.filehistory
self.menu.Destroy()