]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
cf694132 RD |
4 | #---------------------------------------------------------------------- |
5 | ||
6 | class TestPanel(wxPanel): | |
7 | def __init__(self, parent, log): | |
8 | wxPanel.__init__(self, parent, -1) | |
9 | self.log = log | |
10 | self.count = 0 | |
11 | ||
12 | wxStaticText(self, -1, "This is a wxSlider.", wxPoint(45, 15)) | |
13 | ||
14 | slider = wxSlider(self, 100, 25, 1, 100, wxPoint(30, 60), | |
15 | wxSize(250, -1), | |
16 | wxSL_HORIZONTAL | wxSL_AUTOTICKS | wxSL_LABELS ) | |
17 | slider.SetTickFreq(5, 1) | |
18 | ||
19 | ||
20 | ||
21 | #---------------------------------------------------------------------- | |
22 | ||
23 | def runTest(frame, nb, log): | |
24 | win = TestPanel(nb, log) | |
25 | return win | |
26 | ||
27 | #---------------------------------------------------------------------- | |
28 | ||
29 | ||
30 | ||
31 | ||
1e4a197e RD |
32 | overview = """\ |
33 | """ | |
cf694132 RD |
34 | |
35 | ||
36 | ||
1e4a197e RD |
37 | if __name__ == '__main__': |
38 | import sys,os | |
39 | import run | |
40 | run.main(['', os.path.basename(sys.argv[0])]) | |
cf694132 | 41 |