in reply to TK mainwindow

Show us sample code that demonstrates the problem then we can provide a solution appropriate to your context. However, the following may be of some help:

use strict; use warnings; use Tk; use Tk::DialogBox; my $main = MainWindow->new (); my $dlg = $main->DialogBox ( -title => "demo Dialog", -buttons => ["OK"] ); $dlg->add ('Label', -text => <<MSG)->form (); Click OK to close the dialog. MSG $main->withdraw (); $dlg->transient (undef); $dlg->Show (-global);

True laziness is hard work