Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
The stupid question is the question not asked
 
PerlMonks  

How to put animated GIF in a perl GUI created using Tk

by jack123 (Acolyte)
on May 08, 2012 at 12:10 UTC ( #969432=perlquestion: print w/ replies, xml ) Need Help??
jack123 has asked for the wisdom of the Perl Monks concerning the following question:

#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new; my $image = $mw->Photo(-file => 'C:/wamp/bin/Perl/bin/ajax_loader.gif' +); $mw->Label(-image=>$image)->pack; $mw->MainLoop;
This image is animated one and it runs successfully in IE.

Comment on How to put animated GIF in a perl GUI created using Tk
Download Code
Re: How to put animated GIF in a perl GUI created using Tk
by Anonymous Monk on May 08, 2012 at 12:27 UTC
Re: How to put animated GIF in a perl GUI created using Tk
by ww (Chancellor) on May 08, 2012 at 12:29 UTC
Re: How to put animated GIF in a perl GUI created using Tk
by Khen1950fx (Canon) on May 08, 2012 at 12:52 UTC
    Try this...
    #!/usr/bin/perl use strict; use warnings; use Tk::Animation; my $gif = 'C:/wamp/bin/Perl/bin/ajax_loader.gif'; my $mw = MainWindow->new; my $img = $mw->Animation( '-format' => 'gif', '-file' => $gif, ); $mw->Label('-image' => $img)->pack; $img->start_animation; $mw->MainLoop;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://969432]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (17)
As of 2013-05-20 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (415 votes), past polls