Added a compatibilitiy fix for QScintilla 2.5.

Sat, 09 Apr 2011 10:12:22 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Apr 2011 10:12:22 +0200
changeset 971
1243c600ba57
parent 968
c6d377168b02
child 974
124032ef6b6d

Added a compatibilitiy fix for QScintilla 2.5.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Mon Apr 04 19:24:07 2011 +0200
+++ b/QScintilla/Editor.py	Sat Apr 09 10:12:22 2011 +0200
@@ -3493,8 +3493,12 @@
             Preferences.getEditor("AutoCompletionCaseSensitivity"))
         self.setAutoCompletionReplaceWord(
             Preferences.getEditor("AutoCompletionReplaceWord"))
-        self.setAutoCompletionShowSingle(
-        Preferences.getEditor("AutoCompletionShowSingle"))
+        try:
+            self.setAutoCompletionUseSingle(
+                Preferences.getEditor("AutoCompletionShowSingle"))
+        except AttributeError:
+            self.setAutoCompletionShowSingle(
+                Preferences.getEditor("AutoCompletionShowSingle"))
         autoCompletionSource = Preferences.getEditor("AutoCompletionSource")
         if autoCompletionSource == QsciScintilla.AcsDocument:
             self.setAutoCompletionSource(QsciScintilla.AcsDocument)

eric ide

mercurial