Change coords of a canvas.line item

M

Matthias Vodel

Hi all,

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))

I don't want to delete and repaint a new line item. Is this possible?

Thanks

Matthias
 
F

Fredrik Lundh

Matthias said:
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)

</F>
 
W

Wojciech =?ISO-8859-2?Q?Mu=B3a?=

Fredrik said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top