'Set the text of this item.
This method sets the plain text of the item; see also setHtml().'

def setText(self, text, color=None):

    if (color is not None):
        self.setColor(color)
    self.textItem.setPlainText(text)
    self.updateTextPos()
