Alternatively, you can use the update() method within the original callback function (and set a delay with the after() method if desired):
sub slide_it { my ($c, $thing) = @_; for my $i (10..80) { $c->coords($thing, $i, $i); $c->update; # update $c widget # $c->after(100); # delay if desired } }
In reply to Re: (crazyinsomniac) Re: Tk Canvas Animation
by danger
in thread Tk Canvas Animation
by dvergin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |