Tkinter locks Python when an icon is loaded and tk.mainloop is in a thread Tkinter locks Python when an icon is loaded and tk.mainloop is in a thread tkinter tkinter