X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec873c943d71f0d5f13e3398557071448cda6c23..a4027e74873007e3430af3bd77019bcab76f6c04:/wxPython/demo/LEDNumberCtrl.py?ds=inline diff --git a/wxPython/demo/LEDNumberCtrl.py b/wxPython/demo/LEDNumberCtrl.py deleted file mode 100644 index 0217d6910a..0000000000 --- a/wxPython/demo/LEDNumberCtrl.py +++ /dev/null @@ -1,116 +0,0 @@ - -import time - -import wx -import wx.gizmos as gizmos - -#---------------------------------------------------------------------- - -class TestPanel(wx.Panel): - def __init__(self, parent, log): - wx.Panel.__init__(self, parent, -1) - self.log = log - - led = gizmos.LEDNumberCtrl(self, -1, (25,25), (280, 50)) - led.SetValue("01234") - - led = gizmos.LEDNumberCtrl(self, -1, (25,100), (280, 50)) - led.SetValue("56789") - led.SetAlignment(gizmos.LED_ALIGN_RIGHT) - led.SetDrawFaded(False) - - led = gizmos.LEDNumberCtrl(self, -1, (25,175), (280, 50), - gizmos.LED_ALIGN_CENTER)# | gizmos.LED_DRAW_FADED) - self.clock = led - self.OnTimer(None) - - self.timer = wx.Timer(self) - self.timer.Start(1000) - self.Bind(wx.EVT_TIMER, self.OnTimer) - - - def OnTimer(self, evt): - t = time.localtime(time.time()) - st = time.strftime("%I-%M-%S", t) - self.clock.SetValue(st) - - - def ShutdownDemo(self): - self.timer.Stop() - del self.timer - - -#---------------------------------------------------------------------- - -def runTest(frame, nb, log): - win = TestPanel(nb, log) - return win - -#---------------------------------------------------------------------- - -overview = """\ - -
-The following was gleaned as best I could from the wxWindows -source, which was a bit reluctant to reveal its secrets. My appologies if -I missed anything - jmg -
-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 -numeric input. - -
Styles - -
Methods (and best guesses at what they do) - -
Additionally, several methods of wx.Window are available as well. - - - -""" - - - -if __name__ == '__main__': - import sys,os - import run - run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) -