Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (crazyinsomniac) Re: Tk Canvas Animation

by danger (Priest)
on Jan 02, 2002 at 14:17 UTC ( [id://135640]=note: print w/replies, xml ) Need Help??


in reply to (crazyinsomniac) Re: Tk Canvas Animation
in thread Tk Canvas Animation

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 } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://135640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found