Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Tk::Animation won't work :(

by JamesNC (Chaplain)
on May 13, 2005 at 17:23 UTC ( [id://456826]=note: print w/replies, xml ) Need Help??


in reply to Tk::Animation won't work :(

Here you go:
use Tk; use Tk::Animation; use strict; my $scr = new MainWindow; $scr->configure(-background=>"black"); $scr->geometry("500x500"); my $canvas = $scr->Canvas(-width,500,-height,500, -background=> "black")->pack(-expand, 1, -fill, 'both'); my $image = $scr->Animation('-format' => 'gif', -file => "tree.gif"); $canvas->createImage( 250,250, -image=> $image); $image->blank($image,1); $image->start_animation(40); MainLoop;


JamesNC

Replies are listed 'Best First'.
Re^2: Tk::Animation won't work :(
by rvosa (Curate) on May 13, 2005 at 17:47 UTC
    Yay! It works! Thanks.
      You are most welcome :^)

Log In?
Username:
Password:

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

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

    No recent polls found