]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wx_examples/basic/app.py
Add support for checked and radio menu items
[wxWidgets.git] / wxPython / samples / wx_examples / basic / app.py
1 #!/usr/bin/env python
2
3 """Basic application class."""
4
5 __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
6 __cvsid__ = "$Id$"
7 __revision__ = "$Revision$"[11:-2]
8
9 import wx
10
11 from frame import Frame
12
13 class App(wx.App):
14 """Application class."""
15
16 def OnInit(self):
17 self.frame = Frame()
18 self.frame.Show()
19 self.SetTopWindow(self.frame)
20 return True
21
22 def main():
23 app = App()
24 app.MainLoop()
25
26 if __name__ == '__main__':
27 main()