]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/Slider.py
Fix incorrect #if in OnSysTell
[wxWidgets.git] / wxPython / demo / Slider.py
... / ...
CommitLineData
1
2import wx
3
4#----------------------------------------------------------------------
5
6class TestPanel(wx.Panel):
7 def __init__(self, parent, log):
8 wx.Panel.__init__(self, parent, -1)
9 self.log = log
10 self.count = 0
11
12 wx.StaticText(self, -1, "This is a wx.Slider.", (45, 15))
13
14 slider = wx.Slider(
15 self, 100, 25, 1, 100, (30, 60), (250, -1),
16 wx.SL_HORIZONTAL | wx.SL_AUTOTICKS | wx.SL_LABELS
17 )
18
19 slider.SetTickFreq(5, 1)
20
21
22
23#----------------------------------------------------------------------
24
25def runTest(frame, nb, log):
26 win = TestPanel(nb, log)
27 return win
28
29#----------------------------------------------------------------------
30
31
32
33
34overview = """\
35A slider is a control with a handle which can be pulled back and forth to
36change the value.
37
38In Windows versions below Windows 95, a scrollbar is used to simulate the slider.
39In Windows 95, the track bar control is used.
40
41"""
42
43
44if __name__ == '__main__':
45 import sys,os
46 import run
47 run.main(['', os.path.basename(sys.argv[0])])
48