'Adds a message to the textview.
:param text: the message to add.'

def add_message(self, text, page_num=0):

    textview = self.textviews[page_num]
    textbuffer = textview.get_buffer()
    iterl = textbuffer.get_end_iter()
    textbuffer.insert(iterl, text)
    textview.scroll_to_mark(textbuffer.get_insert(), 0)
