def go_to_position(self, position):
        """
        Moves the text cursor to given position.

        :param position: Position to go to.
        :type position: int
        :return: Method success.
        :rtype: bool
        """

        cursor = self.textCursor()
        cursor.setPosition(position)
        self.setTextCursor(cursor)
        return True
Moves the text cursor to given position.

        :param position: Position to go to.
        :type position: int
        :return: Method success.
        :rtype: bool