while i try to get the canvas or even the bbox coordinates of an object i am either getting None returned or the object is returning the memory location of the object and not the location on the canvas,
from tkinter import * from PIL import ImageTk,Image root = Tk() canvas=Canvas(root,width=400,height=400) canvas.pack() class Image: def __init__(self): self.img = PhotoImage(file='./8bitship.png') self.id = canvas.create_image(120,0,anchor=NW,image=self.img) mship = Image() mship_loc = canvas.bbox(mship) print(mship_loc) print(mship)