Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
1. I'm trying to display a dialog box by itself - however it seems the parent window always shows up behind it, even though it's empty. I'm trying to find a way to not have the parent display at all. I'm using the following code:
my $top = MainWindow->new(); my $next = $top->DialogBox(-title=>"Qconnect", -buttons=> ["OK", "Canc +el"], -default_button=>"OK"); my $next2 = $next->add ('Label', -text=>"Enter agent ID:")->pack(-side +=>'left'); my $next3 = $next->add ('Entry', -textvariable=>\$port, -width=>8)->pa +ck; $next->Show; $top->destroy; MainLoop();
2. I'm trying to find a way to make the text entry field (as shown above) the active field from the start, so that users can just type the entry without having to click on the text area first.
Thanks,
Glenn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ichimunki) Re: Perl/TK dialog boxes
by ichimunki (Priest) on Aug 15, 2001 at 22:19 UTC | |
|
Re: Perl/TK dialog boxes
by clintp (Curate) on Aug 15, 2001 at 23:29 UTC |