Using .config in tkinter
问题 Beginner here Having trouble getting a label to update on a simple countdown app, Can anyone explain why the label does not update in the loop? import time import tkinter as tk root = tk.Tk() root.geometry('150x100') seconds_inp = tk.Entry(root) global time_label time_label = tk.Label(root, text = '00', font = 20) start_button = tk.Button(root, text = 'start', command = lambda: countdown_clock(int(seconds_inp.get()))) def countdown_clock(seconds): while True: seconds = seconds - 1 time.sleep