]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxSpinCtrl.py
replaced wxAppTraits::GetOSVersion with GetToolkitInfo with richer information that...
[wxWidgets.git] / wxPython / demo / wxSpinCtrl.py
1
2 from wxPython.wx import *
3
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 example uses the wxSpinCtrl control.",
13 wxPoint(45, 15))
14
15 sc = wxSpinCtrl(self, -1, "", wxPoint(30, 50), wxSize(80, -1))
16 sc.SetRange(1,100)
17 sc.SetValue(5)
18 #sc.Enable(False)
19
20
21 #----------------------------------------------------------------------
22
23 def runTest(frame, nb, log):
24 win = TestPanel(nb, log)
25 return win
26
27 #----------------------------------------------------------------------
28
29
30
31
32
33
34
35 overview = """\
36 """
37
38
39
40
41
42 if __name__ == '__main__':
43 import sys,os
44 import run
45 run.main(['', os.path.basename(sys.argv[0])])