From 108db18a79c50e30ee08cf84ae4edae776455600 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 22 Jan 2004 23:56:39 +0000 Subject: [PATCH] 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 --- wxPython/demo/LEDNumberCtrl.py | 4 ++++ 1 file changed, 4 insertions(+) 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 + #---------------------------------------------------------------------- -- 2.47.2