]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/infoframe.py
Added a set of button classes to wx.lib.buttons from David Hughes that
[wxWidgets.git] / wxPython / wx / lib / infoframe.py
index 13f209a9033dbd05299a38b6edf7cf15cc0fd468..9b62ba6f80516c288a0db3aabd8d408cecad817c 100644 (file)
@@ -1,3 +1,9 @@
+# 12/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o wxPyInformationalMessagesFrame -> PyInformationalMessagesFrame
+# o dummy_wxPyInformationalMessagesFrame -> dummy_PyInformationalMessagesFrame
+#
+
 """
 infoframe.py
 Released under wxWindows license etc.
@@ -26,23 +32,25 @@ Please note that, like wxPyOnDemandOutputWindow, the instance is not
 itself a subclass of wxWindow: when the window is open (and ONLY
 then), it's "frame" attribute is the actual instance of wFrame...
 
-Typical usage:
+Typical usage::
+
     from wxPython.lib.infoframe import *
     ... # ... modify your wxApp as follows:
     class myApp(wxApp):
-        outputWindowClass = wxPyInformationalMessagesFrame
+        outputWindowClass = PyInformationalMessagesFrame
         ...
+        
 If you're running on Linux, you'll also have to supply an argument 1 to your
 constructor of myApp to redirect stdout/stderr to this window (it's done
 automatically for you on Windows).
 
 If you don't want to redirect stdout/stderr, but use the class directly: do
-it this way:
+it this way::
 
- InformationalMessagesFrame = wxPyInformationalMessagesFrame\
+ InformationalMessagesFrame = PyInformationalMessagesFrame\
                                          ([options from progname (default ""),
-                                           txt (default "informational
-                                                         messages"])
+                                           txt (default "informational messages"])
+                                          
 #^^^^ early in the program
 ...
 InformationalMessagesFrame([comma-separated list of items to
@@ -192,7 +200,7 @@ class _MyStatusBar(wx.StatusBar):
 
 
 
-class wxPyInformationalMessagesFrame:
+class PyInformationalMessagesFrame:
     def __init__(self,
                  progname="",
                  text="informational messages",
@@ -398,7 +406,7 @@ class wxPyInformationalMessagesFrame:
         self.CloseFile()
         dlg = wx.FileDialog(self.frame,
                           "Choose a new log file", self.dir,"","*",
-                           wx.SAVE | wx.HIDE_READONLY | wx.OVERWRITE_PROMPT)
+                           wx.SAVE | wx.OVERWRITE_PROMPT)
         if dlg.ShowModal() == wx.ID_CANCEL:
             dlg.Destroy()
             return 0
@@ -456,7 +464,7 @@ class wxPyInformationalMessagesFrame:
 
 
 
-class Dummy_wxPyInformationalMessagesFrame:
+class Dummy_PyInformationalMessagesFrame:
     def __init__(self,progname=""):
         self.softspace = 1
     def __call__(self,*args):