ttk::spinbox validate
Runs the validation script now and gives its result.
PATHNAME validate
Description
Runs -validatecommand with the event forced, in each mode of -validate, also none. A false result runs -invalidcommand. With no -validatecommand, the result is 1.
Returns
1 or 0.
Examples
% ttk::spinbox .tsbvd -validatecommand {string is digit %P}
> .tsbvd insert 0 abc
> .tsbvd validate
0
% ttk::spinbox .tsbvd2
> .tsbvd2 validate
1
Errors
% ttk::spinbox .tsbvd3; .tsbvd3 validate x
wrong # args: should be ".tsbvd3 validate"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1