ttk::combobox set
Sets the text of the field.
PATHNAME set VALUE
Description
Replaces the text with VALUE. The value does not need to be in -values. set works also with -state readonly.
Returns
An empty string.
Examples
% ttk::combobox .tcbse -state readonly -values {a b}
> .tcbse set b
> .tcbse get
b
Errors
% ttk::combobox .tcbse2; .tcbse2 set
wrong # args: should be ".tcbse2 set value"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1