docs: def set_text(self, text):
          """ The method insert text into the text buffer of the text view and preserves the cursor location.
  
          :param str text: which is insert into the text buffer.
          :return:
          """
          line_number, line_offset = self.get_cursor_position()
          self.get_buffer().set_text(text)
          self.set_cursor_position(line_number, line_offset)