X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fa23c09cdf8b4cbccf730a6e53c7688f79d250b..7a9ca9fca6ed9153365dec13585547242593ca26:/wxPython/docs/wxPackage.html diff --git a/wxPython/docs/wxPackage.html b/wxPython/docs/wxPackage.html index 8969840b20..58b408ea2c 100644 --- a/wxPython/docs/wxPackage.html +++ b/wxPython/docs/wxPackage.html @@ -169,8 +169,8 @@ wxPython, so there are lots of examples to look at and to play with. Here is one of them, it is the simple sample.
#---------------------------------------------------------------------- -# 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,11 +244,14 @@ 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()