Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

my $e = $mw->Entry( -validate => 'key', -validatecommand => sub {$_[1] =~ /[perl\/Tk]/i}, -invalidcommand => sub {$mw->bell}, )->pack;

In the above, how to specify focusin event and the corresponding validate and invalid commands.

That means how to specify two events with different validate and invalidate subroutines for a widget

Replies are listed 'Best First'.
Re: specify two events in Entry widget
by Anonymous Monk on Jan 16, 2012 at 07:10 UTC
Re: specify two events in Entry widget
by zentara (Cardinal) on Jan 16, 2012 at 11:42 UTC