]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/infoframe.py
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / demo / infoframe.py
index a9d71f950bd0cdf6d1ed91b633afa28984233052..14d744b8743f4869f8be5eb45f8805d3d408ca2d 100644 (file)
@@ -1,18 +1,8 @@
-# 11/12/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-# o wx module doesn't like the doc string.
-#
-# 11/25/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Library didn't get hit by the wx renamer.
-# o Docstring issues resolved.
-#
 
 import  sys
 
 import  wx
 
 import  sys
 
 import  wx
-import  wx.lib.infoframe as infoframe
+import  wx.lib.infoframe
 
 #----------------------------------------------------------------------
 
 
 #----------------------------------------------------------------------
 
@@ -57,7 +47,7 @@ class MyFrame(wx.Frame):
 
         # Get a copy of stdout and set it aside. We'll use it later.
         self.save_stdout = sys.stdout
 
         # 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.
         # Now point to the output object for stdout
         sys.stdout = self.output = output
         # ... and use it.
@@ -82,14 +72,14 @@ class MyFrame(wx.Frame):
 
 #----------------------------------------------------------------------
 
 
 #----------------------------------------------------------------------
 
-overview = infoframe.__doc__
+overview = wx.lib.infoframe.__doc__
 
 def runTest(frame, nb, log):
     """
     This method is used by the wxPython Demo Framework for integrating
     this demo with the rest.
     """
 
 def runTest(frame, nb, log):
     """
     This method is used by the wxPython Demo Framework for integrating
     this demo with the rest.
     """
-    win = MyFrame(infoframe.wxPyInformationalMessagesFrame())
+    win = MyFrame(wx.lib.infoframe.PyInformationalMessagesFrame())
     frame.otherWin = win
     win.Show(1)
 
     frame.otherWin = win
     win.Show(1)
 
@@ -113,14 +103,15 @@ if __name__ == "__main__":
 ##             output.SetOtherMenuBar(menubar,menuname="Output")
 
 ##         def OnClose(self,event):
 ##             output.SetOtherMenuBar(menubar,menuname="Output")
 
 ##         def OnClose(self,event):
-##             if isinstance(sys.stdout,wxPyInformationalMessagesFrame):
+##             if isinstance(sys.stdout,wx.lib.infoframe.PyInformationalMessagesFrame):
 ##                 sys.stdout.close()
 ##             self.Destroy()
 
 ##                 sys.stdout.close()
 ##             self.Destroy()
 
+    class MyApp(wx.App):
+        
         # Override the default output window and point it to the
         # custom class.
         # Override the default output window and point it to the
         # custom class.
-        #>>Todo: wx renamer didn't get this
-        outputWindowClass = infoframe.wxPyInformationalMessagesFrame
+        outputWindowClass = wx.lib.infoframe.PyInformationalMessagesFrame
         
         def OnInit(self):
             
         
         def OnInit(self):
             
@@ -141,8 +132,7 @@ if __name__ == "__main__":
             self.SetTopWindow(frame)
             
             # Associate the frame with stdout.
             self.SetTopWindow(frame)
             
             # Associate the frame with stdout.
-            #>>Todo: wx renamer didn't get this
-            if isinstance(sys.stdout, infoframe.wxPyInformationalMessagesFrame):
+            if isinstance(sys.stdout, wx.lib.infoframe.PyInformationalMessagesFrame):
                 sys.stdout.SetParent(frame)
 
             print "Starting.\n",
                 sys.stdout.SetParent(frame)
 
             print "Starting.\n",