X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19b47f5b2ca793c32264c67ea672bf4c4c0a01f3..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/demo/Gauge.py?ds=sidebyside diff --git a/wxPython/demo/Gauge.py b/wxPython/demo/Gauge.py index 35ad5f94ae..d53bcdbf33 100644 --- a/wxPython/demo/Gauge.py +++ b/wxPython/demo/Gauge.py @@ -18,6 +18,9 @@ class TestPanel(wx.Panel): self.timer = wx.Timer(self) self.timer.Start(100) + def __del__(self): + self.timer.Stop() + def TimerHandler(self, event): self.count = self.count + 1 @@ -28,7 +31,6 @@ class TestPanel(wx.Panel): self.g2.Pulse() - #---------------------------------------------------------------------- def runTest(frame, nb, log):