]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxLEDNumberCtrl.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / demo / wxLEDNumberCtrl.py
index 1829e727130adddb28bf980fb2042907ba8a9872..4aead1754123972bdb43d127f7a5e06b289331f1 100644 (file)
@@ -12,13 +12,12 @@ class TestPanel(wxPanel):
         self.log = log
 
         led = wxLEDNumberCtrl(self, -1, (25,25), (280, 50))
-        led.SetValue("0123456789")
-        led.SetAlignment(wxLED_ALIGN_RIGHT)
+        led.SetValue("01234")
 
         led = wxLEDNumberCtrl(self, -1, (25,100), (280, 50))
-        led.SetValue("0123456789")
+        led.SetValue("56789")
         led.SetAlignment(wxLED_ALIGN_RIGHT)
-        led.SetDrawFaded(false)
+        led.SetDrawFaded(False)
 
         led = wxLEDNumberCtrl(self, -1, (25,175), (280, 50),
                               wxLED_ALIGN_CENTER)# | wxLED_DRAW_FADED)
@@ -47,3 +46,11 @@ def runTest(frame, nb, log):
 
 overview = """\
 """
+
+
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
+