def showEvent(self, event):
        """ Reimplemented to connect signal handlers and event filter.
        """
        super(CallTipWidget, self).showEvent(event)
        self._text_edit.cursorPositionChanged.connect(
            self._cursor_position_changed)
        self._text_edit.installEventFilter(self)
def showEvent ( self , event ) : super ( CallTipWidget , self ) . showEvent ( event ) self . _text_edit . cursorPositionChanged . connect ( self . _cursor_position_changed ) self . _text_edit . installEventFilter ( self )
Reimplemented to connect signal handlers and event filter.