X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ccf691a4ead55449f6093acaa4c21c166b06d3a4..b78d046d82b43135f3ab0c8fd5edbd9e68ad712b:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 4f4a52a1ec..b53d83aace 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -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 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))