Force the output window to display at the begining of the app

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-09-25 23:11:03 +00:00
parent edda5768ab
commit a3f4cbd6c8

View File

@ -74,10 +74,13 @@ class MyFrame(wx.Frame):
class MyApp(wx.App):
def OnInit(self):
frame = MyFrame(None, "Simple wxPython App")
frame.Show(True)
self.SetTopWindow(frame)
print "This is where print statements go."
frame.Show(True)
return True
app = MyApp(True)
app = MyApp(redirect=True)
app.MainLoop()