]>
Commit | Line | Data |
---|---|---|
be05b434 RD |
1 | #!/usr/bin/env python |
2 | ||
3 | """Spare.py is a starting point for simple wxPython programs.""" | |
4 | ||
5 | import wx | |
6 | ||
7 | class Frame(wx.Frame): | |
8 | pass | |
9 | ||
10 | class App(wx.App): | |
11 | ||
12 | def OnInit(self): | |
13 | self.frame = Frame(parent=None, id=-1, title='Spare') | |
14 | self.frame.Show() | |
15 | self.SetTopWindow(self.frame) | |
16 | return True | |
17 | ||
18 | if __name__ == '__main__': | |
19 | app = App() | |
20 | app.MainLoop() |