X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/demo/LEDNumberCtrl.py?ds=sidebyside diff --git a/wxPython/demo/LEDNumberCtrl.py b/wxPython/demo/LEDNumberCtrl.py index 7bb46e1647..0217d6910a 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

-wxLEDNumberCtrl( parent, id=-1, pos=wx.DefaultPosition, +LEDNumberCtrl( parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=LED_ALIGN_LEFT | LED_DRAW_FADED)

This is a control that simulates an LED clock display. It only accepts @@ -112,5 +112,5 @@ numeric input. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])