<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def addText(self, text):
 """append text in the chosen color"""

        # move to the end of the doc
        self.moveCursor(QtGui.QTextCursor.End)
        # insert the text
        self.setTextColor(self._currentColor)
        self.textCursor().insertText(text)