]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-02/startup.py
8 def __init__(self
, parent
, id, title
):
10 wx
.Frame
.__init
__(self
, parent
, id, title
)
14 def __init__(self
, redirect
=True, filename
=None):
16 wx
.App
.__init
__(self
, redirect
, filename
)
20 self
.frame
= Frame(parent
=None, id=-1, title
='Startup')
22 self
.SetTopWindow(self
.frame
)
23 print >> sys
.stderr
, "A pretend error message"
24 print "app name: <", self
.GetVendorName(), ">"
30 if __name__
== '__main__':
31 app
= App(redirect
=True)
32 print "before MainLoop"
34 print "after MainLoop", fred