]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-07/spinner.py
don't use strlen() to verify the length of the string as it can contain embedded...
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-07 / spinner.py
1 import wx
2
3 class 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
12 if __name__ == '__main__':
13 app = wx.PySimpleApp()
14 SpinnerFrame().Show()
15 app.MainLoop()