]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxSpinCtrl.py
2 from wxPython
.wx
import *
4 #----------------------------------------------------------------------
6 class TestPanel(wxPanel
):
7 def __init__(self
, parent
, log
):
8 wxPanel
.__init
__(self
, parent
, -1)
12 wxStaticText(self
, -1, "This example uses the wxSpinCtrl control.",
15 sc
= wxSpinCtrl(self
, -1, "", wxPoint(30, 50), wxSize(80, -1))
21 #----------------------------------------------------------------------
23 def runTest(frame
, nb
, log
):
24 win
= TestPanel(nb
, log
)
27 #----------------------------------------------------------------------
42 if __name__
== '__main__':
45 run
.main(['', os
.path
.basename(sys
.argv
[0])])