From 769c0c934f0ddaaa68cffb2fa0328b79bfd21277 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 7 Jun 2007 18:44:14 +0000 Subject: [PATCH] Add ShutdownDemo to better clean up when switching to another sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/Threads.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wxPython/demo/Threads.py b/wxPython/demo/Threads.py index ceb2fdc78b..96ef2afd42 100644 --- a/wxPython/demo/Threads.py +++ b/wxPython/demo/Threads.py @@ -211,10 +211,13 @@ class TestPanel(wx.Panel): def OnButton(self, evt): - win = TestFrame(self, self.log) - win.Show(True) + self.win = TestFrame(self, self.log) + self.win.Show(True) + def ShutdownDemo(self): + self.win.Close() + #---------------------------------------------------------------------------