X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..51ba037fa8891066572ff367577770e234089dc0:/wxPython/demo/LEDNumberCtrl.py diff --git a/wxPython/demo/LEDNumberCtrl.py b/wxPython/demo/LEDNumberCtrl.py index 7bb46e1647..da45690412 100644 --- a/wxPython/demo/LEDNumberCtrl.py +++ b/wxPython/demo/LEDNumberCtrl.py @@ -1,7 +1,3 @@ -# 11/19/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import time @@ -39,6 +35,10 @@ class TestPanel(wx.Panel): self.clock.SetValue(st) + def ShutdownDemo(self): + self.timer.Stop() + del self.timer + #---------------------------------------------------------------------- @@ -55,7 +55,7 @@ overview = """\ source, which was a bit reluctant to reveal its secrets. My appologies if I missed anything - jmg
- This is a control that simulates an LED clock display. It only accepts
wxLEDNumberCtrl( parent, id=-1, pos=wx.DefaultPosition,
+
LEDNumberCtrl( parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=LED_ALIGN_LEFT | LED_DRAW_FADED)