in reply to TK screen problem
So, as anon suggested, pepper your code with $mw->update() in long loops, or processing sections etc.
For efficiency sake (i.e. don't slow down your program) do NOT
instead, only update sometimes (every 100 iterations perhaps?)foreach my $i (1..10000) { ... do stuff $mw->update(); }
foreach my $i (1..10000) { ... do stuff if (int($i/100)*100 == $i) { $mw->update(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TK screen problem
by lostjimmy (Chaplain) on Oct 31, 2008 at 16:18 UTC | |
by Lawliet (Curate) on Oct 31, 2008 at 18:42 UTC |