in reply to Re^2: perl/Tk Entry validation
in thread perl/Tk Entry validation

As you might have noticed in the documentation or in the example above, you do not have to send any arguments to validatecommand. They are sent automatically.

Replies are listed 'Best First'.
Re^4: perl/Tk Entry validation
by contact@solamen.fr (Novice) on Jul 24, 2012 at 13:33 UTC
    Actually the question is not really if it is NECESSARY to pass some arguments to the validate command but if it is POSSIBLE - just as it is done in the case of any other command using a subroutine reference with arguments in a list. Remember I want to set the boundaries as parameters of the validation process.
      If you use the annonymous array syntax, the listed arguments will be prepended to the standard argument list.