Python Forum
how do i find the canvas location of an object?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do i find the canvas location of an object?
#3
I did not take into account the name of the class for this example, honestly I didn’t realize I couldn’t name my classes after commonly used methods but it makes sense the same way we can’t save files named the same way, but let’s say the class was named Ship like in my other script. Could I then use the canvas.bbox.id() to get the coordinates from the class object on the canvas?
Or should I ditch the class object all together?
Reply


Messages In This Thread
RE: how do i find the canvas location of an object? - by gr3yali3n - Mar-03-2021, 05:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Resizing image inside Canvas (with Canvas' resize) Gupi 2 25,254 Jun-04-2019, 05:05 AM
Last Post: Gupi
  [Tkinter] Problem loading an image from directory into a Canvas object tiotony 3 3,955 Sep-02-2018, 06:47 PM
Last Post: woooee

Forum Jump:

User Panel Messages

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