it is possible to do something similar using the -validate option:
$parent->Entry( -validate=>'key', -validatecommand=>['entry_validation',$self], ); #### snip sub entry_validation{ my $self = shift(); my @args = @_; $self->set_changed unless ($args[4]== -1);#triggered on user interac +tion only return 1; #allow changes }
This will trigger on paste events as well. - I'm not checking for changed content here. I think it would be possible - take a look at the documentation for -validatecommand
In reply to Re: perl Tk
by Anonymous Monk
in thread perl Tk
by jagdish.eashwar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |