Digital Clock Display - Multithreading Required?
Situation I have the following Tkinter window: And in the blank space on the right: I want to be able to continuously update the time, like on a digital clock. I will take the pre
Solution 1:
You don't need multithreading.
...
a = Label(root, text=time.strftime('%H:%M:%S'))
def update_time():
a['text'] = time.strftime('%H:%M:%S')
root.after(1000, update_time)
root.after(1000, update_time)
a.grid(row=3, column=1)
...
Post a Comment for "Digital Clock Display - Multithreading Required?"