It is true that I don't have MainLoop, but I don't believe that was the issue. I observed more carefully, the DialogBox actually poped up, but it is not the top window, thus it is covered by the broswer window (as you said this is a filter ;-). If I minimize the broswer, then the DialogBox shows up (or click its icon to activate it, it also shows up).
This code works, the box pops up three times:
use Tk; my $mw = MainWindow->new(); for (1..3) { $mw->DialogBox(-title => "?", -buttons => ["Yes", "No"])->Show(); }
Which makes sense, as the "command prompt" window, from where I run my script, itself is the top window.
The question is how to bring the DialogBox to top front automatically.
CGI is an interesting answer. I like it. It requires more coding, but I am willing to go that way, if there is no way to bring the DialogBox to front.
Sort of don't like the idea of Win32 GUI. Would rather reduce platform dependency.
In reply to Re^2: Tk::DialogBox as the top window
by pg
in thread Tk::DialogBox as the top window
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |