Howdy,
In the snippet of code below, I want the user to enter information in the entry widget, and only after pressing return, display the dialog. More specifically, I want the code to wait at $entry->get and process the conditional only after a response is entered. The current code just hangs. I can type in the entry widget but the program never advances. The entry widget is embedded in a main window. Thank you for any suggestions.
my $name = "";
$entry->waitVariable(\$name);
$name = $entry->get;
if ($name ne "" ) {
print OUT "$name\n";
$entry->delete(0,length($name));
$entry->update;
}
$main->Dialog(-title => "Begin Task", -text => "Click OK to begin first task")->Show;
usleep(2500000);