diff --git a/wxPython/demo/ActiveXWrapper_IE.py b/wxPython/demo/ActiveXWrapper_IE.py index b103d15cf3..216825dd29 100644 --- a/wxPython/demo/ActiveXWrapper_IE.py +++ b/wxPython/demo/ActiveXWrapper_IE.py @@ -78,7 +78,7 @@ class TestPanel(wxWindow): self.location = wxComboBox(self, wxNewId(), "", style=wxCB_DROPDOWN) EVT_COMBOBOX(self, self.location.GetId(), self.OnLocationSelect) EVT_KEY_UP(self.location, self.OnLocationKey) - #EVT_CHAR(self.location, self.IgnoreReturn) + EVT_CHAR(self.location, self.IgnoreReturn) btnSizer.Add(self.location, 1, wxEXPAND|wxALL, 5) sizer.Add(btnSizer, 0, wxEXPAND) 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))