--- a/QScintilla/Editor.py Tue Mar 31 18:52:04 2015 +0200 +++ b/QScintilla/Editor.py Tue Apr 07 13:54:51 2015 +0200 @@ -4272,11 +4272,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 == \ @@ -4285,11 +4291,6 @@ QsciScintilla.CallTipsNoAutoCompletionContext) else: self.setCallTipsStyle(QsciScintilla.CallTipsContext) - try: - self.setCallTipsPosition( - Preferences.getEditor("CallTipsPosition")) - except AttributeError: - pass else: self.setCallTipsStyle(QsciScintilla.CallTipsNone)