1
#!/usr/local/bin/perl -w
3
use lib './blib/lib'; use Tk::Splashscreen;
4
use Tk::widgets qw/Photo Animation/;
7
my $mw = MainWindow->new;
9
$mw->Button(-text => 'Quit', -command => \&exit)->pack;
12
my $splash = $mw->Splashscreen(-milliseconds => 5000);
15
my $gif89 = Tk->findINC('anim.gif');
16
$animate = $splash->Animation(-format => 'gif', -file => $gif89);
17
$splash->Label(-image => $animate)->pack;
18
$animate->set_image(0);
19
$animate->start_animation(500);
21
$splash->Splash; # show Splashscreen
25
print STDOUT "Waiting for Splashscreen to finish ...\n";
27
$splash->Destroy; # tear down Splashscreen
29
$mw->deiconify; # show calculator