Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: I want Tk::Splashscreen not centered.

by keszler (Priest)
on Oct 24, 2013 at 09:47 UTC ( #1059419=note: print w/ replies, xml ) Need Help??


in reply to I want Tk::Splashscreen not centered.

To move the splashscreen from the center, immediately after your $splash->Splash; command add $splash->geometry("+20+20");.


Comment on Re: I want Tk::Splashscreen not centered.
Select or Download Code
Re^2: I want Tk::Splashscreen not centered.
by ric00015 (Beadle) on Oct 24, 2013 at 14:54 UTC

    Alas, that didn't work either. I had the $splash->geometry("+20+20"); right after $splash->Splash;, just like you said, but no dice. I even put the geometry command right after the creation code: our $splash = $parent->Splashscreen(-milliseconds => 3000); but still it was stuck in the middle.

      The example program for Tk::Splashscreen is http://cpansearch.perl.org/src/LUSOL/Tk-Splashscreen-1.0/splashscreen.pl. On my system (WinXP 64 w/ Activestate 5.12.2), adding the $splash->geometry("+20+20"); command as above succeeded in moving the splash window.

      If this isn't the case for you, please reduce your program to the minimum needed to demonstrate the problem and post it as a new question, along with details of your OS and Perl versions. (More people will see a new SoPW than will see new replies in this one.)

        Bam! I got it. The splash screen no longer lingers in the crack between screens. Thanks for your advice. I had to tinker with an example for a while. At first I was trying to make it duplicate the behavior I was seeing, but ended up doing it the right way and copied that over. :)

        I do have another question, but I'll go ahead and put it in another node, as you suggested.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-11-23 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (132 votes), past polls