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.TclError: can't invoke "canvas" command cybertooth 8 5,779 Feb-23-2023, 06:58 PM
Last Post: deanhystad
  [Tkinter] Clickable Rectangles Tkinter Canvas MrTim 4 8,669 May-11-2021, 10:01 PM
Last Post: MrTim
  [Tkinter] Draw a grid of Tkinter Canvas Rectangles MrTim 5 7,776 May-09-2021, 01:48 PM
Last Post: joe_momma
Thumbs Up tkinter canvas; different page sizes on different platforms? philipbergwerf 4 4,043 Mar-27-2021, 05:04 AM
Last Post: deanhystad
  how to resize image in canvas tkinter samuelmv30 2 17,563 Feb-06-2021, 03:35 PM
Last Post: joe_momma
  Tkinter function to clear old canvas and start a fresh "operation" zazas321 5 9,252 Oct-01-2020, 04:16 AM
Last Post: zazas321
  question on tkinter canvas PhotoImage gr3yali3n 1 2,106 Sep-05-2020, 12:18 PM
Last Post: Larz60+
  TKinter coordinate system (canvas) Bhoot 1 2,901 Mar-23-2020, 04:30 PM
Last Post: Larz60+
  tkinter canvas help pythonprogrammer 5 3,270 Dec-23-2019, 08:32 AM
Last Post: Malt
  [Tkinter] Scrollbar doesn't work on Canvas in Tkinter DeanAseraf1 3 9,305 Sep-19-2019, 03:26 PM
Last Post: joe_momma

Forum Jump:

User Panel Messages

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