[Tutor] Tkinter and threads

alan.gauld@bt.com alan.gauld@bt.com
Fri, 30 Nov 2001 17:22:18 -0000


> written from the main program displays immediately, as it should.
> However, the text that is written from the thread doesn't 
> display until I fiddle with the scrollbar. 

I'll take a guess that you need to invalidate the app so that 
it will redraw but I can't recall how to do that in Tkinter 
- I'm pretty sure there is a function in there somewhere to 
do it.

> as each background process completes. Do I need to add some kind of
> locking?

I don't think so, I think you need to call invalidate after(or as) 
each thread terminates.

Alan G