how to check if the enter key is pressed python how to check if the enter key is pressed python tkinter tkinter

how to check if the enter key is pressed python


You can check using keysym:

if event.keysym == 'Return'