]> git.saurik.com Git - wxWidgets.git/commitdiff
Stop the timer when the demo is shutdown
authorRobin Dunn <robin@alldunn.com>
Thu, 22 Jan 2004 23:56:39 +0000 (23:56 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 22 Jan 2004 23:56:39 +0000 (23:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/LEDNumberCtrl.py

index 4814864d4b0e293fa6f4d38e1e546dd5e40dfbd6..da45690412d02341428ce43cd786b13c0731133d 100644 (file)
@@ -35,6 +35,10 @@ class TestPanel(wx.Panel):
         self.clock.SetValue(st)
 
 
+    def ShutdownDemo(self):
+        self.timer.Stop()
+        del self.timer
+
 
 #----------------------------------------------------------------------