V. 0 Newbie Poster

Hello,
I'm trying to build a count up, now I have the problem, that I don't know how to show the numbers on the screen. So I found tkinter, but I need to refresh the content of the window (e. g. every hour). How can I manage to do that?

That's my code so far:

import time

now = time.localtime()
hour=now.tm_hour
minute=now.tm_min
summer=now.tm_isdst

print("Tag:", day)
print("Monat:", month)
print("Jahr:", year)

while True:
time.sleep(3600.0)
day=now.tm_mday
month=now.tm_mon
year=now.tm_year
if month<4:
j=year-2020
elif month==4:
if day<4:
j=year-2020
else:
j=year-2019
else:
j=year-2019

if month<4:
m=month+7
elif month==4:
if day<7:
m=month+7
elif day>=7:
m=0
else:
m=month-4
else:
m=month-4

if day<7:
t=day+24
elif day==7:
t=0
else:
t=day-7
print(j , ":" , m , ":" , t)