From: Robin Dunn Date: Wed, 11 Sep 2002 01:00:43 +0000 (+0000) Subject: PyCrust tweak to allow it to work with older Scintilla's X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e7163afc4530ec18fbbfb629307953e4356a139b 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 --- 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."""