set up tkinter class template