Gwalchmai has asked for the wisdom of the Perl Monks concerning the following question:
Below is a simple example. The window is so small that the title is obscured.
How can I have the window centered on the screen and enlarged? I eventually want to have child screens that are the same size as the main window, that appear in the center and completely cover the main window.
I would be greatful for any help.
Thanks,
Doug
use Tk; my $main = MainWindow->new; $main->title("Resize Test"); $main->width => 300; $main->height => 300; $main->Button( -text => "Exit Program", -command => sub { exit } )->pack(); MainLoop;
janitored by ybiC: Balanced <code> tags to facilitate easy code download
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk Window Size
by pg (Canon) on Nov 13, 2003 at 12:52 UTC | |
|
Re: Tk Window Size
by Anonymous Monk on Nov 13, 2003 at 12:57 UTC | |
|
Re: Tk Window Size
by zentara (Cardinal) on Nov 13, 2003 at 16:50 UTC |