in reply to Unbuffered printing to tk text widget
However, you need to stop using sleep in a gui program. Why? Because what if you have other things going on in the background, in a more complex script? sleep will stop them all from functioning for 2 seconds. sleep puts the WHOLE script to sleep. Use this:$txt -> delete('0.0', 'end'); if ($todo){ $txt -> insert('end',"Let's see what you picked...\n\n\n"); $txt->update;
# sleep (2); $mw->after(2000); #milliseconds
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unbuffered printing to tk text widget
by banango (Initiate) on May 23, 2007 at 16:50 UTC |