'Update the text box.'

def update(self, text):

    old_width = self.layout.width
    if (not self.status):
        return
    if (len(text) > self.max_chars > 0):
        text = (text[:self.max_chars] + '\xe2\x80\xa6')
    self.text = text
    if (self.layout.width == old_width):
        self.draw()
    else:
        self.bar.draw()
