]> git.saurik.com Git - wxWidgets.git/blame - wxPython/samples/wxPIA_book/Chapter-07/spinner.py
Adding overview docs and a couple tweaks to the demo.
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-07 / spinner.py
CommitLineData
be05b434
RD
1import wx
2
3class SpinnerFrame(wx.Frame):
4 def __init__(self):
5 wx.Frame.__init__(self, None, -1, 'Spinner Example',
6 size=(100, 100))
7 panel = wx.Panel(self, -1)
8 sc = wx.SpinCtrl(panel, -1, "", (30, 20), (80, -1))
9 sc.SetRange(1,100)
10 sc.SetValue(5)
11
12if __name__ == '__main__':
13 app = wx.PySimpleApp()
14 SpinnerFrame().Show()
15 app.MainLoop()