Remove canvas shapes by tag?

cage cage at katamail.com
Wed Oct 12 16:27:15 UTC 2016


On Mon, Oct 10, 2016 at 09:47:39PM -0600, Ryan wrote:
> Hello all,

Hello!

> new to the list (hopefully this has not been asked)
> I've created a global canvas called *main-canvas* and have attached a few
> shapes to it.
> (create-line* *main-canvas*  `(,x ,y ,x2 ,y2) :tags "line")
>
> Am I specifying the tag correctly for the new line instance or does it need
> to be in a list?

Never tried this way (does it actually works), i usually use itemconfigure for that:

(itemconfigure canvas object "tag" "tag-name")

Bye!
C.



More information about the ltk-user mailing list