Python Forum
how to rotate lines in tkinter canvas
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to rotate lines in tkinter canvas
#1
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.
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Clickable Rectangles Tkinter Canvas MrTim 4 4,516 May-11-2021, 10:01 PM
Last Post: MrTim
  [Tkinter] Draw a grid of Tkinter Canvas Rectangles MrTim 5 4,242 May-09-2021, 01:48 PM
Last Post: joe_momma
Thumbs Up tkinter canvas; different page sizes on different platforms? philipbergwerf 4 2,212 Mar-27-2021, 05:04 AM
Last Post: deanhystad
  how to resize image in canvas tkinter samuelmv30 2 11,701 Feb-06-2021, 03:35 PM
Last Post: joe_momma
  Tkinter function to clear old canvas and start a fresh "operation" zazas321 5 5,353 Oct-01-2020, 04:16 AM
Last Post: zazas321
  question on tkinter canvas PhotoImage gr3yali3n 1 1,460 Sep-05-2020, 12:18 PM
Last Post: Larz60+
  TKinter coordinate system (canvas) Bhoot 1 1,993 Mar-23-2020, 04:30 PM
Last Post: Larz60+
  tkinter canvas help pythonprogrammer 5 2,218 Dec-23-2019, 08:32 AM
Last Post: Malt
  [Tkinter] Scrollbar doesn't work on Canvas in Tkinter DeanAseraf1 3 7,333 Sep-19-2019, 03:26 PM
Last Post: joe_momma
  [Tkinter] Plotting Raster Data / TIFF files on tkinter canvas RRSCNGP 0 1,857 Aug-28-2019, 04:44 AM
Last Post: RRSCNGP

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020