My Whole Program is Working in a Loop like this
myWindow = Tk()
myWindow.title("Live Data")
myWindow.geometry("500x600")
def my_mainloop():
statements....
myWindow.after(1000, my_mainloop)
myWindow.after(1000, my_mainloop)
myWindow.mainloop()
I want to implement something(button/checkbox), which is changing a value in variable like 0 and 1
so i can use this value (0/1) in this infinite loop to code my logic
A Click will change value to 1 and then another click will change value to 0.
Thank you.