
import time
from tkinter import *
import tkinter as tk
# Erzeugung des Fensters
tkFenster = Tk()
tkFenster.title('Test')
liste = [1,2,3,4,5,6,7]
def function1():
x = 0
while x-1 < len(liste):
print(x) # only for testing
ausgabe.config(text=x)
ausgabe.after(300)
#time.sleep(0.3) #another try
x += 1
ausgabe = Label(tkFenster)
ausgabe.grid(row=0)
function1()
#knopf = Button(tkFenster, text="Klick", command=function1) #activate with button
#knopf.grid(row=1)
# Aktivierung des Fensters
tkFenster.mainloop()