I have a popup dialog box which has a lable entry to get user input. Not only would I like to set the focus on the input entry when it pops up, but also, on the pop up window itself (the window stays deselected until the mouse is clicked on it).
None of the '->focus' codes I found work.
None of the '->focus' codes I found work.
Code:
$usr_prompt = $cnv_script_win -> DialogBox (-title => " Prerequisite Script Found!", -buttons => ['Submit']);
$usr_prompt->add('LabEntry', -textvariable => \$resp, -width => 50,
-label => "Please read the following and enter the correct input:", -labelPack => [-side => 'top'])
->pack();
$usr_prompt->Show();