Don't call sleep from within your Tk application. Doing anything blocking like that will make the whole application unresponsive and not handle any events, and when you wake up from the sleep, all unhandled events will be handled again.
If you want to sleep look at a Tk->after like in this demo.
If you want to run a long running process that actually does some work, do that in a thread or outside of your UI program, or split it up into small chunks so that you can return to the Tk mainloop in between.
In reply to Re: Really disable a button in Tk
by Corion
in thread Really disable a button in Tk
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |