'How to use "canvas.tag_bind" properly?

Hi guys i'm using Python with Tkinter, in this portion of code how to bind the key "Return" to the "siri" variable that is simply an image attached to the canvas?

from tkinter import *
from PIL import Image,ImageTk
from ctypes import windll
def click(*args):
    print("aaaaaaaaaaaaaa")
windll.shcore.SetProcessDpiAwareness(1)
root = Tk()
root.title("Echeca")
root.geometry("400x400")
root.state("zoomed")
foto = (Image.open("bottone.png"))
resized_image= foto.resize((150,150))
new_image= ImageTk.PhotoImage(resized_image)
sfondo = PhotoImage(file="robotagnocca.png")
canvas = Canvas(root)
sfondino = canvas.create_image(960,450, image=sfondo)
siri = canvas.create_image(669.5,280, image=new_image)
canvas.create_text(200,130, text="Login",fill="green",font=("times",20,"bold"))
canvas.pack(fill=BOTH,expand=True)
canvas.tag_bind(sfondino, "<Button-1>", click)
mainloop()

With "<Button-1>" works but if i use "<Return"> or "<Escape>" just like the normal .bind function it doesn't work... How to bind Return or Escape? Thanks!!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source