def leaveEvent(self, event): self.__mouseInWidget = False return QsciScintilla.leaveEvent(self, event)