]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-01/spare.py
don't use strlen() to verify the length of the string as it can contain embedded...
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-01 / spare.py
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, 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()