Change coords of a canvas.line item

Wojciech Muła wojciech_mula at
Fri Jan 5 14:06:23 CET 2007

Fredrik Lundh wrote:
> Matthias Vodel wrote:
>> I want to change the beginning/end-coordinates of a canvas.line item.
>> Something like:
>> self.myCanvas.itemconfigure(item_id, coords=(x1_new, y1_new, x2_new, y2_new))
>     self.myCanvas.coords(item_id, x1_new, y1_new, x2_new, y2_new)

You can also use insert and dchars methods to add and delete
vertices (useful for polylines/polygons).


More information about the Python-list mailing list