PyCrust tweak to allow it to work with older Scintilla's
authorRobin Dunn <robin@alldunn.com>
Wed, 11 Sep 2002 01:00:43 +0000 (01:00 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 11 Sep 2002 01:00:43 +0000 (01:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/lib/PyCrust/shell.py

index 32b1b5ffecb31c087eaeb9f8b5ee0b0cdb9f2e10..e72edd69281ad6b65adb8b3cedec735fb1eee0c1 100644 (file)
@@ -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."""