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 is a wxSlider.", wxPoint(45, 15))
14 slider
= wxSlider(self
, 100, 25, 1, 100, wxPoint(30, 60),
16 wxSL_HORIZONTAL | wxSL_AUTOTICKS | wxSL_LABELS
)
17 slider
.SetTickFreq(5, 1)
21 #----------------------------------------------------------------------
23 def runTest(frame
, nb
, log
):
24 win
= TestPanel(nb
, log
)
27 #----------------------------------------------------------------------
37 if __name__
== '__main__':
40 run
.main(['', os
.path
.basename(sys
.argv
[0])])