What is the best way to stop a thread and avoid 'RuntimeError' in python using threading and tkinter modules? What is the best way to stop a thread and avoid 'RuntimeError' in python using threading and tkinter modules? tkinter tkinter