There are lots of ways to draw objects using the Tkinter Canvas element, but making the canvas elements interactable adds a lot to the applications you create. There are a few things to take into account when binding events like what events to trigger on and how to find out what item triggered what event.
In this article I will address how to set events, how to react to their output and how to find out what element triggered the event.
Let's start by creating a very simple application that contains a Canvas element. In that Canvas we create an oval element that we can use for the rest of the examples.
Read more here : https://www.hashbangcode.com/article/using-events-tkinter-canvas-elements-python