]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/infoframe.py
Added an extra c header for memcmp and stuff...
[wxWidgets.git] / wxPython / demo / infoframe.py
index a9d71f950bd0cdf6d1ed91b633afa28984233052..aeea24411f34e5abef27df15bb3d9c35fd35c27b 100644 (file)
@@ -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)