tkinter on enter code example Example: tkinter execute function on enter def func(event): print("You hit return.") root.bind('<Return>', func)