]>
Commit | Line | Data |
---|---|---|
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() |