How to bind events to Canvas items?
To interact with objects contained in a Canvas object you need to use tag_bind() which has this format: tag_bind(item, event=None, callback=None, add=None) The item parameter can be either a tag or an id. Here is an example to illustrate the concept: from tkinter import * def onObjectClick(event): print(‘Got object click’, event.x, event.y) print(event.widget.find_closest(event.x, event.y)) root … Read more