in reply to Using Perl Tk Waitbox module
my $screenheight = $mw->screenheight; my $screenwidth = $mw->screenwidth; # Force it on the screen and to take a size if it # hasn't already $waitbox->update(); my $wbwidth = $waitbox->width(); my $wbheight = $waitbox->height(); my $x = ($screenwidth - $wbwidth) / 2; my $y = $screenheight - $wbheight; $waitbox->geometry("+$x+$y");
|
---|