Problems with Tkinter and threads

Paul Rubin http
Mon Jul 17 07:27:08 EDT 2006


"Claus Tondering" <claus.tondering at gmail.com> writes:
> Does this mean that I cannot even call the main thread's after_idle
> method from another thread?

I'm not certain, I've never tried it that way since there's no way I
could be confident of its reliability even if it appeared to work.
Just use after_idle to check for a Queue item and set another
after_idle event.  I generally use about 50 msec (20 hz) which doesn't
cause any noticable delay for a gui.  Call the first after_idle from
the gui thread when you put up the gui.



More information about the Python-list mailing list