Change coords of a canvas.line item
Wojciech Muła
wojciech_mula at poczta.null.onet.pl.invalid
Fri Jan 5 08:06:23 EST 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).
w.
More information about the Python-list
mailing list