in reply to Entry Widget Events
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Entry Widget Events
by AnomalousMonk (Archbishop) on Jan 06, 2010 at 14:37 UTC |