A thread-safe version of tkinter