Canvas.items

Salim Zayat zayats at red.seas.upenn.edu
Tue Jun 4 11:32:11 EDT 2002


Hey there.  I noticed that the Canvas widget, depending on which version 
of Python or Tkinter you are using, may/may not have the Canvas.items 
attribute.  Is there another way to reference the actual CanvasItem if you 
had the id of the tag?  For example, if I had a CanvasText item with the 
id 21, I want to do something like :

item = canvas.items[21]

Thanks!

Salim



More information about the Python-list mailing list