]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
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 | ||
f6bcfd97 BP |
14 | wxStaticText(self, -1, "This example uses the wxSpinCtrl control.", |
15 | wxPoint(45, 15)) | |
cf694132 | 16 | |
f6bcfd97 BP |
17 | sc = wxSpinCtrl(self, -1, "", wxPoint(30, 50), wxSize(80, -1)) |
18 | sc.SetRange(1,100) | |
19 | sc.SetValue(5) | |
dfef5d51 | 20 | #sc.Enable(false) |
cf694132 RD |
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 | ||
cf694132 RD |
37 | overview = """\ |
38 | """ |