From: Robin Dunn <robin@alldunn.com>
Date: Thu, 22 Jan 2004 23:56:39 +0000 (+0000)
Subject: Stop the timer when the demo is shutdown
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/108db18a79c50e30ee08cf84ae4edae776455600

Stop the timer when the demo is shutdown


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/wxPython/demo/LEDNumberCtrl.py b/wxPython/demo/LEDNumberCtrl.py
index 4814864d4b..da45690412 100644
--- a/wxPython/demo/LEDNumberCtrl.py
+++ b/wxPython/demo/LEDNumberCtrl.py
@@ -35,6 +35,10 @@ class TestPanel(wx.Panel):
         self.clock.SetValue(st)
 
 
+    def ShutdownDemo(self):
+        self.timer.Stop()
+        del self.timer
+
 
 #----------------------------------------------------------------------