Added support for tkinter