Convert canvas' mouse coords to geographic coords
问题 I'm trying to create a map with all the cities of Italy using Python-Tkinter and Canvas . I found a picture of a map of Italy with a few highlighted cities online and inserted it to my Canvas . After that I used a function to determine what are the canvas coordinates of the 2 highlighted cities using: import tkinter as tk class Map(): #Creator-Function def __init__(self,parent): self.canvas=tk.Canvas(width=995,height=971,bg='black') self.canvas.pack(expand=0,fill='none') self.gif=tk