X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90805926b75bcdc8466b1736df4413c7581cdc30..9fd94f430aa2842eceb9fddcb1a6dee81e7f8ea1:/wxPython/docs/wxPackage.html diff --git a/wxPython/docs/wxPackage.html b/wxPython/docs/wxPackage.html index e6c1ee9d01..58b408ea2c 100644 --- a/wxPython/docs/wxPackage.html +++ b/wxPython/docs/wxPackage.html @@ -8,7 +8,7 @@ - +
@@ -28,9 +28,9 @@#---------------------------------------------------------------------- -# A very simple wxPython example. Just a wxFrame, wxPanel, -# wxStaticText, wxButton, and a wxBoxSizer, but it shows the basic +# A very simple wxPython example. Just a wx.Frame, wx.Panel, +# wx.StaticText, wx.Button, and a wx.BoxSizer, but it shows the basic # structure of any wxPython application. #---------------------------------------------------------------------- @@ -244,20 +244,19 @@ class MyFrame(wx.Frame): class MyApp(wx.App): def OnInit(self): frame = MyFrame(None, "Simple wxPython App") - frame.Show(True) self.SetTopWindow(frame) + + print "Print statements go to this stdout window by default." + + frame.Show(True) return True -app = MyApp(True) +app = MyApp(redirect=True) app.MainLoop()