Problems? Is your data what you think it is? | |
PerlMonks |
Re: Animation Display appling Delay and Canvas Objectby bbfu (Curate) |
on May 19, 2006 at 04:06 UTC ( [id://550408]=note: print w/replies, xml ) | Need Help?? |
You need to add a $canvas->update() before the sleep, and you'd be advised to replace the sleep with some more Tk-friendly form of delay. In fact, you probably want to replace the whole loop with a timer, whose event handler performs the necessary canvas additions. This would obviate completely the need to update as well as sleep.
bbfu
In Section
Seekers of Perl Wisdom
|
|