$color = $canvas->itemcget("circle", -fill);
$canvas->itemconfigure($id_number, -fill => "yellow", -outline => 5);
Make sure the options you use with itemconfigure
and itemcget are valid. Each item type has a list
of valid options; they are listed earlier in this chapter with each
create method.
When you set the -tags option, the
itemconfigure method replaces any currently set
tags for the item. The taglist associated
with -tags can also be empty, which will
essentially remove all tags.
 |  |  |
9.7. Configuring the Canvas Widget |  | 9.9. Tags |