'Returns the textbuffer content.'

def get_text(self):

    iterini = self.textbuffer.get_start_iter()
    iterend = self.textbuffer.get_end_iter()
    text = self.textbuffer.get_text(iterini, iterend)
    return text
