def METHOD_NAME(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,end - start)
    # And finally we set this new cursor as the parent's 
    self.parent.text.setTextCursor(cursor)