option clear
Removes each entry of the option database.
option clear
Description
The new widgets after the call get the defaults of the widget and the theme. A widget that exists keeps its options.
Returns
An empty string.
Examples
% option add *Button.text Hello
> option clear
> button .c
> .c cget -text
Errors
% option clear all
wrong # args: should be "option clear"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1