5343 self.SendScintilla(QsciScintilla.SCI_CALLTIPCANCEL) |
5343 self.SendScintilla(QsciScintilla.SCI_CALLTIPCANCEL) |
5344 |
5344 |
5345 if not found: |
5345 if not found: |
5346 return |
5346 return |
5347 |
5347 |
|
5348 callTips = [] |
5348 if self.__ctHookFunctions: |
5349 if self.__ctHookFunctions: |
5349 callTips = [] |
|
5350 for key in self.__ctHookFunctions: |
5350 for key in self.__ctHookFunctions: |
5351 callTips.extend(self.__ctHookFunctions[key](self, pos, commas)) |
5351 callTips.extend(self.__ctHookFunctions[key](self, pos, commas)) |
5352 callTips = list(set(callTips)) |
5352 callTips = list(set(callTips)) |
5353 callTips.sort() |
5353 callTips.sort() |
|
5354 else: |
|
5355 # try QScintilla calltips |
|
5356 super().callTip() |
|
5357 return |
5354 if len(callTips) == 0: |
5358 if len(callTips) == 0: |
5355 if Preferences.getEditor("CallTipsScintillaOnFail"): |
5359 if Preferences.getEditor("CallTipsScintillaOnFail"): |
5356 # try QScintilla calltips |
5360 # try QScintilla calltips |
5357 super().callTip() |
5361 super().callTip() |
5358 return |
5362 return |