def count():
textLen = str(len(text.get(1.0, END)))
wordCounter["text"] = "Символов в тексте: " + textLen
text.bind("<Key>", lambda e: count())
turtle._root.mainloop()
from tkinter import *
from time import sleep
window = Tk()
c = Canvas(window, width=800, height=500, bg='darkblue')
c.pack()
def text_show():
c.create_text(400,250, text='You win!',\
font=('Helvetica', 30), fill='white')
window.update_idletasks()
sleep(5)
exit()
c.after(500, text_show) # in milliseconds