In your code, you create an Entry widget:
$mw = $f1->Entry( -textvariable => '', -width => 40); $mw->pack(-side => "left");
The easiest way to get the value entered is to supply a reference to a scalar variable:
my $f1_value; $mw = $f1->Entry( -textvariable => \$f1_value, -width => 40); $mw->pack(-side => "left");
When the user enters or changes the text in the Entry widget, the variable $f1_value will be updated withe value entered.
Other widgets have similar mechanisms, possibly using -variable instead of -textvariable. Some require calling a method to fetch the value, such as Text, with requires using Text::Contents to fetch the text entered. The implementations of the widgets have some inconsistencies.
Unfortunately, you will likely have to read multiple pages of documentation to find the information you need.
In reply to Re: TK Gui Help
by RonW
in thread TK Gui Help
by GuiPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |