regenned the ReST docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 <tt class="literal"><span class="pre">simple</span></tt> sample.</p>
|
||||
<pre class="literal-block">
|
||||
#----------------------------------------------------------------------
|
||||
# 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()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user