my $mw = MainWindow -> new (); $screen_h = $mw -> screenheight (); $screen_w = $mw -> screenwidth (); $mw -> geometry ($screen_w . "x" . $screen_h);