in reply to Tk MainWindow from module Foo on to appear on top
If you don't want to have one and only one MainWindow (remember that closing a MainWindow exits your program), you can use only Toplevels and call $mw->withdraw immediately after creating the MainWindow. Your MainWindow will then be invisible and you'll only have Toplevels, which can be closed without requring the program to end.my $win = $mw->Toplevel(-title => 'ererree');
As far as your actual question, try $win->focus, where $win is the name of the window you want to bring to the front.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Tk MainWindow from module Foo on to appear on top
by aplonis (Pilgrim) on Oct 25, 2003 at 19:02 UTC |