http://www.perlmonks.org?node_id=224263


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;

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"