--- a/eric6/QScintilla/Editor.py Sat Sep 07 17:34:29 2019 +0200 +++ b/eric6/QScintilla/Editor.py Sat Sep 07 19:07:41 2019 +0200 @@ -18,7 +18,8 @@ from PyQt5.QtWidgets import QLineEdit, QActionGroup, QDialog, QInputDialog, \ QApplication, QMenu from PyQt5.QtPrintSupport import QPrinter, QPrintDialog, QAbstractPrintDialog -from PyQt5.Qsci import QsciScintilla, QsciMacro, QsciStyledText +from PyQt5.Qsci import QsciScintilla, QsciMacro, QsciStyledText, \ + QSCINTILLA_VERSION from E5Gui.E5Application import e5App from E5Gui import E5FileDialog, E5MessageBox @@ -4403,7 +4404,8 @@ self.caretWidth = Preferences.getEditor("CaretWidth") self.setCaretWidth(self.caretWidth) self.caretLineFrameWidth = Preferences.getEditor("CaretLineFrameWidth") - self.setCaretLineFrameWidth(self.caretLineFrameWidth) + if QSCINTILLA_VERSION() >= 0x020B00: + self.setCaretLineFrameWidth(self.caretLineFrameWidth) self.useMonospaced = Preferences.getEditor("UseMonospacedFont") self.setMonospaced(self.useMonospaced) edgeMode = Preferences.getEditor("EdgeMode")