]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/Slider.py
   4 #---------------------------------------------------------------------- 
   6 class TestPanel(wx
.Panel
): 
   7     def __init__(self
, parent
, log
): 
   8         wx
.Panel
.__init
__(self
, parent
, -1) 
  12         wx
.StaticText(self
, -1, "This is a wx.Slider.", (45, 15)) 
  15             self
, 100, 25, 1, 100, (30, 60), (250, -1),  
  16             wx
.SL_HORIZONTAL | wx
.SL_AUTOTICKS | wx
.SL_LABELS 
 
  19         slider
.SetTickFreq(5, 1) 
  23 #---------------------------------------------------------------------- 
  25 def runTest(frame
, nb
, log
): 
  26     win 
= TestPanel(nb
, log
) 
  29 #---------------------------------------------------------------------- 
  35 A slider is a control with a handle which can be pulled back and forth to  
  38 In Windows versions below Windows 95, a scrollbar is used to simulate the slider.  
  39 In Windows 95, the track bar control is used. 
  44 if __name__ 
== '__main__': 
  47     run
.main(['', os
.path
.basename(sys
.argv
[0])] + sys
.argv
[1:])