To get some code called whenever Entry1 changes, you can set up a validation callback.
my $entry1 = $parent->Entry( -validate => 'all', -validatecommand => sub { my $newvalue = shift; $entry2_value = length $newvalue; # set value of Entry2 return 1; # return true to allow the entry value to change }, # other args... );
Make sure your callback code returns true, to say that the new value is valid and allow it to change.
--
"Any sufficiently analyzed magic is indistinguishable from science" - Agatha Heterodyne
In reply to Re: Entry Widget Events
by mykl
in thread Entry Widget Events
by Bintuch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |