]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/Slider.py
1 # 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
3 # o Updated for wx namespace
8 #----------------------------------------------------------------------
10 class TestPanel(wx
.Panel
):
11 def __init__(self
, parent
, log
):
12 wx
.Panel
.__init
__(self
, parent
, -1)
16 wx
.StaticText(self
, -1, "This is a wxSlider.", (45, 15))
19 self
, 100, 25, 1, 100, (30, 60), (250, -1),
20 wx
.SL_HORIZONTAL | wx
.SL_AUTOTICKS | wx
.SL_LABELS
23 slider
.SetTickFreq(5, 1)
27 #----------------------------------------------------------------------
29 def runTest(frame
, nb
, log
):
30 win
= TestPanel(nb
, log
)
33 #----------------------------------------------------------------------
39 A slider is a control with a handle which can be pulled back and forth to
42 In Windows versions below Windows 95, a scrollbar is used to simulate the slider.
43 In Windows 95, the track bar control is used.
48 if __name__
== '__main__':
51 run
.main(['', os
.path
.basename(sys
.argv
[0])])