#!/usr/bin/perl use strict; use warnings; use Tk; use Tk::Animation; use Tk::Photo; my $scale; my $haupt = new MainWindow; my $img = $haupt->Animation('-format' => 'gif', -file => './icons/archiv.gif'); my $image = $haupt->Photo('-format' => 'gif', -file => './icons/top.gif'); my $image2 = $haupt->Photo('-format' => 'gif', -file => './icons/edit.gif'); $img->add_frame($image); $img->add_frame($image2); my $label = $haupt->Label(-image=>$img)->pack; $img->add_label($label); $img->blank(1); $scale = $haupt->Scale(-from => 0, -to => $#{$img->{'_frames_'}}, -orient => "horizontal", -command =>sub { $img->set_image( $scale->get ); } )->pack(); MainLoop();