def _on_mouse_released(self, event):
        """ mouse pressed callback """
        if event.button() == 1 and self._deco:
            cursor = TextHelper(self.editor).word_under_mouse_cursor()
            if cursor and cursor.selectedText():
                self._timer.request_job(
                    self.word_clicked.emit, cursor)
def _on_mouse_released ( self , event ) : if event . button ( ) == 1 and self . _deco : cursor = TextHelper ( self . editor ) . word_under_mouse_cursor ( ) if cursor and cursor . selectedText ( ) : self . _timer . request_job ( self . word_clicked . emit , cursor )
mouse pressed callback