QScintilla/Editor.py

branch
6_0_x
changeset 4203
d18603cecdaa
parent 4171
97591cba48c0
child 4228
5c7842cbe108
diff -r 81833aff8ce7 -r d18603cecdaa QScintilla/Editor.py
--- a/QScintilla/Editor.py	Sat Apr 04 16:08:09 2015 +0200
+++ b/QScintilla/Editor.py	Tue Apr 07 13:54:51 2015 +0200
@@ -4268,11 +4268,17 @@
         """
         Private method to configure the calltips function.
         """
+        self.setCallTipsBackgroundColor(
+            Preferences.getEditorColour("CallTipsBackground"))
+        self.setCallTipsVisible(Preferences.getEditor("CallTipsVisible"))
+        calltipsStyle = Preferences.getEditor("CallTipsStyle")
+        try:
+            self.setCallTipsPosition(
+                Preferences.getEditor("CallTipsPosition"))
+        except AttributeError:
+            pass
+        
         if Preferences.getEditor("CallTipsEnabled"):
-            self.setCallTipsBackgroundColor(
-                Preferences.getEditorColour("CallTipsBackground"))
-            self.setCallTipsVisible(Preferences.getEditor("CallTipsVisible"))
-            calltipsStyle = Preferences.getEditor("CallTipsStyle")
             if calltipsStyle == QsciScintilla.CallTipsNoContext:
                 self.setCallTipsStyle(QsciScintilla.CallTipsNoContext)
             elif calltipsStyle == \
@@ -4281,11 +4287,6 @@
                     QsciScintilla.CallTipsNoAutoCompletionContext)
             else:
                 self.setCallTipsStyle(QsciScintilla.CallTipsContext)
-            try:
-                self.setCallTipsPosition(
-                    Preferences.getEditor("CallTipsPosition"))
-            except AttributeError:
-                pass
         else:
             self.setCallTipsStyle(QsciScintilla.CallTipsNone)
 

eric ide

mercurial