in reply to Re^2: Perl Tk: How Can I get the MainWindow Configuration?
in thread Perl Tk: How Can I get the MainWindow Configuration?
Update:... my $height = $mw->screenheight; my $width = $mw->screenwidth; my $geom = $mw->geometry; $mw->title("New Title ($geom)");
Changed code to show geometry of the window instead of the screen.
Update2: Width and height (for any widget):my $height = $mw->height; my $width = $mw->width; $mw->title("New Title ($width x $height)");
Other options are here: Tk::Widget
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl Tk: How Can I get the MainWindow Configuration?
by ungalnanban (Pilgrim) on Feb 27, 2010 at 04:42 UTC |