Slider control : Slider : WxPython PYTHON TUTORIALS


PYTHON TUTORIALS » WxPython » Slider »

 

Slider control


Slider control
import wx 

class SliderFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self, None, -1'Slider Example', size=(300350))
        panel = wx.Panel(self, -1)
        self.count = 0
        slider = wx.Slider(panel, 100251100, pos=(1010),
                size=(250, -1),
                style=wx.SL_HORIZONTAL | wx.SL_AUTOTICKS | wx.SL_LABELS )
        slider.SetTickFreq(51)
        slider = wx.Slider(panel, 100251100, pos=(12570),
                size=(-1250),
                style=wx.SL_VERTICAL | wx.SL_AUTOTICKS | wx.SL_LABELS )
        slider.SetTickFreq(201)
        
app = wx.PySimpleApp()
frame = SliderFrame()
frame.Show()
app.MainLoop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo WxPython
» Slider