from tkinter import*
from datetime import datetime
a=0
someday=datetime(2022,1,15,00,00,00)
def timea(date):
today=datetime.now()
to=someday-today
return to
win=Tk()
win.geometry("620x60")
win.title("倒计时")
time=Label(win,text=timea(someday),font=('华文行楷',40),fg='red',width=23,height=1 )
time.grid(row=10,column=1)
win.resizable(0,0)
win.mainloop()
这样运行只是静止的。
怎么让它能够动态刷新呢?