From 47eea71e188b7b412f319e729c2a0d8f07eacaf9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 12 Jul 2002 21:29:49 +0000 Subject: [PATCH] better cleanup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/ActiveXWrapper_IE.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wxPython/demo/ActiveXWrapper_IE.py b/wxPython/demo/ActiveXWrapper_IE.py index 001455286a..2e23f54545 100644 --- a/wxPython/demo/ActiveXWrapper_IE.py +++ b/wxPython/demo/ActiveXWrapper_IE.py @@ -111,6 +111,7 @@ class TestPanel(wxWindow): if self.ie: self.ie.Cleanup() self.ie = None + self.frame = None def OnSize(self, evt): @@ -215,7 +216,11 @@ if __name__ == '__main__': style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE) self.CreateStatusBar() self.tp = TestPanel(self, sys.stdout, self) + EVT_CLOSE(self, self.OnCloseWindow) + def OnCloseWindow(self, evt): + self.tp.Destroy() + self.Destroy() app = wxPySimpleApp() frame = TestFrame() -- 2.45.2