Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Splash screen increasing load time

by Khen1950fx (Canon)
on Dec 22, 2012 at 06:51 UTC ( #1009980=note: print w/replies, xml ) Need Help??


in reply to Splash screen increasing load time

This worked for me.
#!/usr/local/bin/perl BEGIN { $| = 1; $^W = 1; } use strict; use warnings; use Tk; use Tk::Splashscreen; use Tk::widgets qw/Photo/; my $ssw = MainWindow->new; $ssw->Button( -text => 'Quit', -command => \&exit, )->pack; my $sp= $ssw->Splashscreen(-milliseconds => 5000); my $giffer = '/path/to/some.gif'; $sp->Label( -image => $ssw->Photo( -file => $giffer, ))->pack; $sp->Splash; $ssw->after(1000); print "Waiting for Splashscreen to finish...\n"; $sp->Destroy; $ssw->deiconify; MainLoop;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009980]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2016-12-02 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (50 votes). Check out past polls.