From e7163afc4530ec18fbbfb629307953e4356a139b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 11 Sep 2002 01:00:43 +0000 Subject: [PATCH] PyCrust tweak to allow it to work with older Scintilla's git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/PyCrust/shell.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wxPython/wxPython/lib/PyCrust/shell.py b/wxPython/wxPython/lib/PyCrust/shell.py index 32b1b5ffec..e72edd6928 100644 --- a/wxPython/wxPython/lib/PyCrust/shell.py +++ b/wxPython/wxPython/lib/PyCrust/shell.py @@ -233,7 +233,10 @@ class Shell(wxStyledTextCtrl): self.autoCallTip = 1 self.CallTipSetBackground(wxColour(255, 255, 232)) self.wrap() - self.SetEndAtLastLine(false) + try: + self.SetEndAtLastLine(false) + except AttributeError: + pass def showIntro(self, text=''): """Display introductory text in the shell.""" -- 2.47.2