I need to stop the while loop via stop_button function. Tried several ways but failed. Looking for tips, thanks.
def start_button():
t1 = threading.Thread(target=thread1)
t1.start()
def thread1():
while True:
start()
def stop_button():
pass