def moveCursor(self,start,end):

        # We retrieve the QTextCursor object from the parent's QTextEdit
        cursor = self.parent.text.textCursor()

        # Then we set the position to the beginning of the last match
        cursor.setPosition(start)

        # Next we move the Cursor by over the match and pass the KeepAnchor parameter
        # which will make the cursor select the the match's text
        cursor.movePosition(QtGui.QTextCursor.Right,QtGui.QTextCursor.KeepAnchor,start - end)

        # And finally we set this new cursor as the parent's 
        self.parent.text.setTextCursor(cursor)
dataset/ETHPy150Open goldsborough/Writer-Tutorial/Part-3/ext/find.py/Find.moveCursor/swapped operands of `-`