Dec-20-2016, 10:11 AM
Thanks for the link to the tutorials. The second one didn't answer the question but the first one did.
It is the method ".after" that I was after! I can now answer my own question
It is the method ".after" that I was after! I can now answer my own question
import tkinter as tk temperature = 0 def counter_label(label): def count(): global temperature temperature += 1 label.config(text="Temperature="+str(temperature)) count label.after(1000, count) count() root = tk.Tk() root.title("Temperature") label = tk.Label(root, fg="green") label.pack() counter_label(label) button = tk.Button(root, text='Stop', width=25, command=root.destroy) button.pack() root.mainloop()