Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Center a Tk window on the screen

by zentara (Archbishop)
on Jan 04, 2003 at 15:32 UTC ( #224263=note: print w/ replies, xml ) Need Help??


in reply to Center a Tk window on the screen

Here's something to try, it centers as well:

#!/usr/bin/perl use Tk; use strict; my $mw=tkinit; $mw->withdraw; #avoid the jumping window bug $mw->Popup; MainLoop;


Comment on Re: Center a Tk window on the screen
Download Code
Replies are listed 'Best First'.
(bbfu) (Popup() method) Re2: Center a Tk window on the screen
by bbfu (Curate) on Jan 04, 2003 at 20:03 UTC

    Interesting! Can you point me to where the Popup() method is documented?

    bbfu
    Black flowers blossum
    Fearless on my breath

      Hmm, Mastering Perl/Tk has a section on it in Chapter 12. Otherwise, a good source of info is doing a http://groups.google.com search for "tk Popup methods"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-07-30 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls