
Code: Alles auswählen
[...]
def uhrzeit():
global uhr_stunde
global uhr_minute
global uhr_sekunde
uhr_stunde = time.localtime()[3]
uhr_minute = time.localtime()[4]
uhr_sekunde = time.localtime()[5]
time.sleep(1)
uhrshow()
def uhrshow():
global uhr_stunde
global uhr_minute
global uhr_sekunde
uhrzeit_show = " "+str(uhr_stunde)+" : "+str(uhr_minute)+" : "+str(uhr_sekunde)
entry_uhr.insert(tk.END,uhrzeit_show)
time.sleep(1)
uhrzeit()
root.mainloop()



Edit (BlackJack): Code-Tags gesetzt.