On Wed, Nov 6, 2013 at 9:31 AM, Nicco Kunzmann <niccokunzm...@rambler.ru>wrote:
> Hello Guido van Rossum, > > when your source code looks like this: > > from tkinter import Tk, Label > from threading import Thread > import time > def thread(): > for i in range(10): > time.sleep(1) > t.after(0, lambda: l.configure(text = str(i))) > t = Tk() > l = Label(t) > l.pack() > th = Thread(target = thread) > th.start() > t.mainloop() > > then it works under Windows. > > Sadly, on Mac with Python 3 and Tcl/Tk 8.5 this exhibits exactly the problem I am complaining about -- the updates are erratic and often need to be helped along by moving the mouse or changing the focus. I'll look into Andreas' solution using event_generate(). -- --Guido van Rossum (python.org/~guido)
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss