code: def append(self, text):
          
          cursor = QTextCursor(self._doc)
          cursor.movePosition(QTextCursor.End)
          cursor.insertBlock()
          cursor.insertText(text)
docs: Append line to the end