Re: Tk not displaying correctly

2005-12-21 Thread Tuvas
Any way you could provide a fairly simple example, or a website that shows it? I understand that I must create a thread for mainloop, however, I can't see how to make that work, every time I do, it ends the program only a few seconds late. Will I have to make an even for all buttons, etc that are o

Re: Tk not displaying correctly

2005-12-21 Thread Paul Rubin
"Tuvas" <[EMAIL PROTECTED]> writes: > What (I think) will happen is when you hit the button, until x=100, the > display will stop updating, and when the command has left it's thread, > it will return to updating again. Is there a way to make it so it > always will update, irreguardless if it's in a

Tk not displaying correctly

2005-12-21 Thread Tuvas
I am building a TK interface, that has several threads. If all threads are running actively, including the main one, the interface doesn't update. For example, I have something like this, although more complex import time, threading master=Tk() def thread: global x x=0 while(TRUE): x=x