]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
Some cleanup
[wxWidgets.git] / wxPython / demo / Main.py
index 4f4a52a1ec6c12f058466e453ce81e9f6900f099..b53d83aacec79e8facfbbe80e6e42859499b80da 100644 (file)
@@ -245,8 +245,11 @@ class wxPythonDemo(wxFrame):
         # Set up a log on the View Log Notebook page
         self.log = wxTextCtrl(splitter2, -1,
                               style = wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL)
         # Set up a log on the View Log Notebook page
         self.log = wxTextCtrl(splitter2, -1,
                               style = wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL)
+
         # Set the wxWindows log target to be this textctrl
         #wxLog_SetActiveTarget(wxLogTextCtrl(self.log))
         # Set the wxWindows log target to be this textctrl
         #wxLog_SetActiveTarget(wxLogTextCtrl(self.log))
+
+        # But instead of the above we want to show how to use our own wxLog class
         wxLog_SetActiveTarget(MyLog(self.log))
 
 
         wxLog_SetActiveTarget(MyLog(self.log))