in reply to Re^4: Perl/Tk: Dialog boxes for idiots (me)
in thread Perl/Tk: Dialog boxes for idiots (me)
Although I don't have the documentation handy, the MainWindow is merely a special case of a "Toplevel" widget. Special in that it is displayed automatically when you call MainLoop. It is displayed automatically, but every other "Toplevel" must be spcifically placed using one or another of the geometry managers. Thus having created your MainWindow you should then be able to call the iconfy method:
and have the pesky window disappear. To get it back?$mw->iconify();
$mw->deiconify();
However it may not reappear on the top of the other windows, to ensure this use the raise method:
jdtoronto$mw->raise();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl/Tk: Dialog boxes for idiots (me)
by herby1620 (Monk) on May 05, 2006 at 20:05 UTC |