Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter coords
#3
You can also move using coords, wuf's solution is better
Quote: .coords(tagOrId, x0, y0, x1, y1, ..., xn, yn)

If you pass only the tagOrId argument, returns a tuple of the coordinates of the lowest or only object specified by that argument. The number of coordinates depends on the type of object. In most cases it will be a 4-tuple (x1, y1, x2, y2) describing the bounding box of the object.

You can move an object by passing in new coordinates.
Reply


Messages In This Thread
Tkinter coords - by dan789 - Dec-17-2018, 04:26 PM
RE: Tkinter coords - by wuf - Dec-17-2018, 06:04 PM
RE: Tkinter coords - by Larz60+ - Dec-17-2018, 06:55 PM
RE: Tkinter coords - by deanhystad - Aug-07-2023, 03:14 PM

Forum Jump:

User Panel Messages

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