V
V
Vitaly2016-09-19 17:46:23
linux
Vitaly, 2016-09-19 17:46:23

How can I find out the key pressed in linux using python?

All the best! Sorry for a possibly dumb question, but maybe someone can suggest a small library for getting information about the pressed key outside the console?
I plan to write a small script that, when a certain button is pressed, launches a certain command.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene 222, 2016-09-19
@mik222

https://pypi.python.org/pypi/keyboard/0.7.1

A
Alexander, 2016-09-19
@NeiroNx

Register in the hot keys of the graphical environment?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question