]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxSpinCtrl.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / demo / wxSpinCtrl.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
cf694132
RD
4#----------------------------------------------------------------------
5
6class TestPanel(wxPanel):
7 def __init__(self, parent, log):
8 wxPanel.__init__(self, parent, -1)
9 self.log = log
10 self.count = 0
11
f6bcfd97
BP
12 wxStaticText(self, -1, "This example uses the wxSpinCtrl control.",
13 wxPoint(45, 15))
cf694132 14
f6bcfd97
BP
15 sc = wxSpinCtrl(self, -1, "", wxPoint(30, 50), wxSize(80, -1))
16 sc.SetRange(1,100)
17 sc.SetValue(5)
1e4a197e 18 #sc.Enable(False)
cf694132
RD
19
20
21#----------------------------------------------------------------------
22
23def runTest(frame, nb, log):
24 win = TestPanel(nb, log)
25 return win
26
27#----------------------------------------------------------------------
28
29
30
31
32
33
34
cf694132
RD
35overview = """\
36"""
1fded56b
RD
37
38
39
40
41
42if __name__ == '__main__':
43 import sys,os
44 import run
45 run.main(['', os.path.basename(sys.argv[0])])