X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90805926b75bcdc8466b1736df4413c7581cdc30..40131743c6b71881ec36f206f88fa2932c36925b:/wxPython/docs/wxPackage.html diff --git a/wxPython/docs/wxPackage.html b/wxPython/docs/wxPackage.html index e6c1ee9d01..82d666958c 100644 --- a/wxPython/docs/wxPackage.html +++ b/wxPython/docs/wxPackage.html @@ -3,12 +3,12 @@
- +This change is being made for a couple of reasons. The first reason -is to discourage the use of import *, which is a dangerous +is to discourage the use of import *, which is a dangerous technique that can create name conflicts and bloated namespaces.
The second reason is to remove what some perceive to be a "wart." For example, the following code is rather ugly in that the "wx" prefix on @@ -164,13 +164,13 @@ replace.
The wxPython demo application and most of the sample apps have been -converted to use the new import wx style of programming with +converted to use the new import wx style of programming with wxPython, so there are lots of examples to look at and to play with. -Here is one of them, it is the simple sample.
+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,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()