]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Threads.py
more cvs to svn script changes
[wxWidgets.git] / wxPython / demo / Threads.py
index ceb2fdc78b559e81904d670e24ce14840895b505..96ef2afd427a75a1c89accffa56b981cee52aa24 100644 (file)
@@ -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()
+
 #---------------------------------------------------------------------------