canvas gettags
Gives the tags of an item.
PATHNAME gettags TAGORID
Description
Gives the tags of the first item of TAGORID, in the order of their addition. An ID with no item gives an empty list.
Returns
A list of tags.
Examples
% canvas .gt
> .gt create oval 0 0 10 10 -tags {round shape}
> .gt gettags 1
round shape
Errors
% canvas .gt2; .gt2 gettags
wrong # args: should be ".gt2 gettags tagOrId"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1