]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxSlider.py
don't log mouse events by default
[wxWidgets.git] / wxPython / demo / wxSlider.py
1
2 from wxPython.wx import *
3
4 import string
5
6 #----------------------------------------------------------------------
7
8 class TestPanel(wxPanel):
9 def __init__(self, parent, log):
10 wxPanel.__init__(self, parent, -1)
11 self.log = log
12 self.count = 0
13
14 wxStaticText(self, -1, "This is a wxSlider.", wxPoint(45, 15))
15
16 slider = wxSlider(self, 100, 25, 1, 100, wxPoint(30, 60),
17 wxSize(250, -1),
18 wxSL_HORIZONTAL | wxSL_AUTOTICKS | wxSL_LABELS )
19 slider.SetTickFreq(5, 1)
20
21
22
23 #----------------------------------------------------------------------
24
25 def runTest(frame, nb, log):
26 win = TestPanel(nb, log)
27 return win
28
29 #----------------------------------------------------------------------
30
31
32
33
34
35
36
37
38
39
40 overview = """\
41 """