X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..86d35a44665429542685acbdc3a23cdcdcc48fb5:/wxPython/demo/infoframe.py?ds=sidebyside diff --git a/wxPython/demo/infoframe.py b/wxPython/demo/infoframe.py index a9d71f950b..aeea24411f 100644 --- a/wxPython/demo/infoframe.py +++ b/wxPython/demo/infoframe.py @@ -57,7 +57,7 @@ class MyFrame(wx.Frame): # Get a copy of stdout and set it aside. We'll use it later. self.save_stdout = sys.stdout - + # Now point to the output object for stdout sys.stdout = self.output = output # ... and use it. @@ -117,9 +117,10 @@ if __name__ == "__main__": ## sys.stdout.close() ## self.Destroy() + class MyApp(wx.App): + # Override the default output window and point it to the # custom class. - #>>Todo: wx renamer didn't get this outputWindowClass = infoframe.wxPyInformationalMessagesFrame def OnInit(self): @@ -141,7 +142,6 @@ if __name__ == "__main__": self.SetTopWindow(frame) # Associate the frame with stdout. - #>>Todo: wx renamer didn't get this if isinstance(sys.stdout, infoframe.wxPyInformationalMessagesFrame): sys.stdout.SetParent(frame)