Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks
I need to create a top window without WM. For this I usually do:
my $dialog = $mw->Toplevel; $dialog->overrideredirect(1);
I also need the $dialog to be always visible on top. For this I usually do:
if ($dialog->parent->toplevel->viewable){$dialog->transient($dialog->p +arent);}
The problem arises if I combine the two. In this case, I disable the WM, but my $dialog does not stay on top if my MainWindow gets the focus.
Any idea?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk overrideredirect topwindow on top
by jcb (Parson) on Oct 07, 2019 at 22:58 UTC | |
by Anonymous Monk on Oct 08, 2019 at 00:14 UTC | |
by jcb (Parson) on Oct 08, 2019 at 02:34 UTC | |
by Anonymous Monk on Oct 08, 2019 at 09:46 UTC | |
by jcb (Parson) on Oct 08, 2019 at 22:24 UTC | |
by Anonymous Monk on Oct 08, 2019 at 09:30 UTC |