]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxFileHistory.py
implement wxColourDialog::Move() (patch 548048)
[wxWidgets.git] / wxPython / demo / wxFileHistory.py
index 9e0725705a7f22fd3b8bf61e6c7579c5afcfd40a..7cf5ca35d2b70d86ec407f32da17855edef0fc7c 100644 (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()