Get keystroke

I am developing translation software on Linux using Python. I am looking for a way to get a keypress. When the English letter key is pressed, I press the key that I want to assign to the variable.

I've tried googling and reading different articles but no luck so far.

+3


source to share


1 answer


Using Pygame , you take care of the keyboard Pygame.KEYDOWN

event . You can see how to use it in the pygame aliens.py example .



+1


source







All Articles