ttk::treeview set
Gives or sets the values of an item in the data columns.
PATHNAME set ITEM ?COLUMN ?VALUE??
Description
With no COLUMN, gives a dict of each column ID and its value. With COLUMN, gives the value of that column. With VALUE, sets it. The tree column #0 has no value: use item ITEM -text.
Returns
A dict, a value, or an empty string.
Examples
% ttk::treeview .ttvse -columns {size date}
> .ttvse insert {} end -id a -values {1 2}
> .ttvse set a size 5
> .ttvse set a
size 5 date 2
Errors
% ttk::treeview .ttvse2 -columns {a}; .ttvse2 insert {} end -id x; .ttvse2 set x nocol
Invalid column index nocol
-errorcode NONE
% ttk::treeview .ttvse3 -columns {a}; .ttvse3 insert {} end -id x; .ttvse3 set x #0
Display column #0 cannot be set
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1