QScintilla/Editor.py

branch
6_0_x
changeset 4203
d18603cecdaa
parent 4171
97591cba48c0
child 4228
5c7842cbe108
equal deleted inserted replaced
4199:81833aff8ce7 4203:d18603cecdaa
4266 4266
4267 def __setCallTips(self): 4267 def __setCallTips(self):
4268 """ 4268 """
4269 Private method to configure the calltips function. 4269 Private method to configure the calltips function.
4270 """ 4270 """
4271 self.setCallTipsBackgroundColor(
4272 Preferences.getEditorColour("CallTipsBackground"))
4273 self.setCallTipsVisible(Preferences.getEditor("CallTipsVisible"))
4274 calltipsStyle = Preferences.getEditor("CallTipsStyle")
4275 try:
4276 self.setCallTipsPosition(
4277 Preferences.getEditor("CallTipsPosition"))
4278 except AttributeError:
4279 pass
4280
4271 if Preferences.getEditor("CallTipsEnabled"): 4281 if Preferences.getEditor("CallTipsEnabled"):
4272 self.setCallTipsBackgroundColor(
4273 Preferences.getEditorColour("CallTipsBackground"))
4274 self.setCallTipsVisible(Preferences.getEditor("CallTipsVisible"))
4275 calltipsStyle = Preferences.getEditor("CallTipsStyle")
4276 if calltipsStyle == QsciScintilla.CallTipsNoContext: 4282 if calltipsStyle == QsciScintilla.CallTipsNoContext:
4277 self.setCallTipsStyle(QsciScintilla.CallTipsNoContext) 4283 self.setCallTipsStyle(QsciScintilla.CallTipsNoContext)
4278 elif calltipsStyle == \ 4284 elif calltipsStyle == \
4279 QsciScintilla.CallTipsNoAutoCompletionContext: 4285 QsciScintilla.CallTipsNoAutoCompletionContext:
4280 self.setCallTipsStyle( 4286 self.setCallTipsStyle(
4281 QsciScintilla.CallTipsNoAutoCompletionContext) 4287 QsciScintilla.CallTipsNoAutoCompletionContext)
4282 else: 4288 else:
4283 self.setCallTipsStyle(QsciScintilla.CallTipsContext) 4289 self.setCallTipsStyle(QsciScintilla.CallTipsContext)
4284 try:
4285 self.setCallTipsPosition(
4286 Preferences.getEditor("CallTipsPosition"))
4287 except AttributeError:
4288 pass
4289 else: 4290 else:
4290 self.setCallTipsStyle(QsciScintilla.CallTipsNone) 4291 self.setCallTipsStyle(QsciScintilla.CallTipsNone)
4291 4292
4292 ########################################################################### 4293 ###########################################################################
4293 ## Autocompletion handling methods below 4294 ## Autocompletion handling methods below

eric ide

mercurial