]> git.saurik.com Git - wxWidgets.git/commitdiff
Force the output window to display at the begining of the app
authorRobin Dunn <robin@alldunn.com>
Sat, 25 Sep 2004 23:11:03 +0000 (23:11 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 25 Sep 2004 23:11:03 +0000 (23:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/samples/simple/simple.py

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