'Updates the textBuffer with the event sent. Also scrolls to last
posted automatically'

def update(self, text, *tags):

    last_position = self.textBuffer.get_end_iter()
    self.textBuffer.insert(last_position, text, len(text))
    lines = self.textBuffer.get_line_count()
    begin = self.textBuffer.get_iter_at_line((lines - 1))
    last_position = self.textBuffer.get_end_iter()
    for tag in tags:
        self.textBuffer.apply_tag(tag, begin, last_position)
    self.scroll_to_insert(self.textBuffer.get_insert())
