This is my code:
from tkinter import *
import time
count = 0
while count >= 0 :
print(count)
time.sleep(1)
count = count + 1
root= Tk()
label1= Label(root, text='Gegevens', bg='lightblue')
label2= Label(root, text='Voortgang')
labelfiets_prestatie= Label (root, text='Fiets_Prestatie',)
labelStappen= Label(root, text='Meter', command= count, bg='red')
label1.pack(fill= X)
label2.pack()
labelfiets_prestatie.pack()
labelStappen.pack()
root.mainloop()
Now my problem is that whenever I delete the count code the GUI appears, but I want the numbers that are generated to be seen in the GUI. Where did it go wrong?