title: Python Tkinter Obtain Some Parameters on Canvas
body: <p>Hope you are all doing well.</p>
  <p>Right now, I created a Tkinter Canvas which displays a resizeable circle object. What I need to do is to print the following parameters on canvas:</p>
  <p>Window location (according to the screen of the computer, should be Left and Top)</p>
  <p>Center Point of the circle image (according to the window X, Y)</p>
  <p>Width and Heigth of the circle image</p>
  <p>Here is my code:</p>
  <pre><code>from tkinter import *
  from PIL import ImageTk, Image
  
  def locator():
  
      root = Tk()
      root.geometry(&quot;300x300&quot;)
      root.overrideredirect()
  
      bg = ImageTk.PhotoImage(file=&quot;Golden-circle (1).png&quot;)
  
      root.attributes('-alpha', 0.25)
      my_canvas = Canvas(root, width=300, height=300)
      my_canvas.pack(fill=&quot;both&quot;, expand=True)
      my_canvas.create_image(350,350, image=bg, anchor=&quot;nw&quot;,tags=&quot;circle&quot;)
      #Draw an Oval in the canvas
  
      def resizer(e):
          global bg1, resized_bg, new_bg
          # Open our image
          bg1 = Image.open(&quot;Golden-circle (1).png&quot;)
          # Resize the image
          resized_bg = bg1.resize((e.width, e.width), Image.ANTIALIAS)
          #resized_bg = bg1.resize((e.height, e.height), Image.ANTIALIAS) if e.height &lt; e.width else bg1.resize((e.width, e.width), Image.ANTIALIAS)
          # Define our image again
          new_bg = ImageTk.PhotoImage(resized_bg)
          # Add it back to the canvas
          my_canvas.create_image(0,0, image=new_bg, anchor=&quot;nw&quot;)
  
  
      root.bind('&lt;Configure&gt;', resizer)
      root.mainloop()
  
  locator()
  </code></pre>
  <p>What I should need to do in order to retrieve/print those parameters?</p>