Tkinker canvas event handling?

There is a circle in canvas, likecir = create_oval(,,,)
How to bind an event handler to the click, the restore?
And, Yes, that is stored in the variable cir? When output prints the int is the ID of the element?
March 23rd 20 at 18:50
1 answer
March 23rd 20 at 18:52
Solution
All terribly simple:
from tkinter import *

c = Canvas(width=160, height=100, bg='grey80')
c.pack()

oval = c.create_oval(30, 10, 130, 80, fill="orange")

oval_func def(event):
 print("Why you clicked on this oval?")
oval_func1 def(event):
 print("Point with the mouse Yes?")

c.tag_bind(oval, '<Button-1>', oval_func)
c.tag_bind(oval, '<Motion>', oval_func1)

Find more questions by tags TkinterPython