QScintilla/Editor.py

changeset 971
1243c600ba57
parent 954
a096fdc38f71
child 984
f4bddd7cf51e
--- 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