What is the best way to stop a thread and avoid 'RuntimeError' in python using threading and tkinter modules?
问题 I have went through multiple solutions on the net, but they require a lot of code that might get confusing once you scale up. Is there a simple way to stop the thread and avoid the RuntimeError: threads can only be started once , in order to call the thread an infinite number of times. Here is a simple version of my code: import tkinter import time import threading def func(): entry.config(state='disabled') label.configure(text="Standby for seconds") time.sleep(3) sum = 0 for i in range(int