X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ccf691a4ead55449f6093acaa4c21c166b06d3a4..763f55468e441e94e65a72b127c8fc2a48c91e91:/wxPython/demo/Main.py?ds=sidebyside diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 4f4a52a1ec..a741bc01ff 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -25,6 +25,7 @@ _treeList = [ 'wxImageFromStream', 'RowColSizer', 'Unicode', + 'wxFileHistory', ]), ('Windows', ['wxFrame', 'wxDialog', 'wxMiniFrame', @@ -64,7 +65,7 @@ _treeList = [ 'ActiveXWrapper_Acrobat', 'ActiveXWrapper_IE', 'wxDragImage', "wxProcess", "FancyText", "OOR", "wxWave", 'wxJoystick', 'DrawXXXList', 'ErrorDialogs', 'wxMimeTypesManager', - 'ContextHelp', 'SplitTree', 'Unicode', + 'ContextHelp', 'SplitTree', 'Unicode', 'wxFileHistory', ]), ('wxPython Library', ['Layoutf', 'wxScrolledMessageDialog', @@ -245,8 +246,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))