Converted tkinter_text to a class structure