code: def go_to_line(self, line):
          
  
          cursor = self.textCursor()
          cursor.setPosition(self.document().findBlockByNumber(line - 1).position())
          self.setTextCursor(cursor)
          return True
docs: Moves the text cursor to given line.
  
          :param line: Line to go to.
          :type line: int
          :return: Method success.
          :rtype: bool