in reply to Perl Tk::Wm
use Tk; my $mw = new MainWindow(); $mw->geometry("200x400+0+0"); $mw->deiconify(); MainLoop;
When a perl/Tk application started, by default the application window gets iconified (appears as an icon). Calling deiconify() overrides the default, and makes the window really displayed,
geometry() takes the a string as parameter, and the string has the format "wxh[+-]l[+-]t":
Compare the following code with the code at the beginning of this post, tun both of them and see the differences:
use Tk; my $mw = new MainWindow(); $mw->geometry("400x200-0-0"); $mw->deiconify(); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl Tk::Wm
by flyingmoose (Priest) on Dec 18, 2003 at 14:34 UTC | |
by Anonymous Monk on Dec 18, 2003 at 16:40 UTC |