Python Forum
how to rotate lines in tkinter canvas - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: how to rotate lines in tkinter canvas (/thread-30126.html)



how to rotate lines in tkinter canvas - helpmewithpython - Oct-06-2020

So i am working on a project where i need to rotate lines placed in tkinter canvas to link them to circles. So like two circles have to be linked together using a line.


RE: how to rotate lines in tkinter canvas - deanhystad - Oct-06-2020

I do not understand your question. canvas.create_line draws a line between two points. If the two points are the center of two circles, the line will link the two circles.

When you say "need to rotate lines" do you mean that the circles are moving and the lines must also move? To do that I would delete the old line and create a new one.