Numpad enter key doesn't work in Python program

112 views Asked by At

I have a Python program running on Raspberry Pi 3 (Raspbian version 10) and I need to do all operations only with Numpad. Everything works fine, but NUMPAD ENTER KEY doesn't work. When I want to enter my input via numpad enter, nothing happens. Does someone know how to fix it?

I tried this but doesn't work

number.bind("<KP_Enter>",keyTray)
1

There are 1 answers

0
sm3sher On

Try binding <Return> instead of <KP_Enter>:

number.bind("<Return>", keyTray)