code: def setComment(self, msg):
          
          self.ui.commentTxtedt.setPlainText(msg)
          # move text cursor to end
          self.ui.commentTxtedt.moveCursor(QtGui.QTextCursor.End)
docs: Sets the widget text to *msg*
  
          :param msg: overwrites any existing text with *msg*
          :type msg: str