def enterEvent(self, event): self.__mouseInWidget = True return QsciScintilla.enterEvent(self, event)