I have been searching through the Internet about how to create your own signal to interrupt a program. My aim is to press the letter R in my keyboard to interrupt a Python script but it seems that it is nearly impossible to create your own signal. Could anyone give me a piece of advice about where I should start?
Asked
Active
Viewed 49 times
0
-
maybe this: https://pypi.org/project/keyboard/ – Reblochon Masque Aug 09 '18 at 08:45
-
this could also help : https://stackoverflow.com/a/25442391/5649962 – Max Aug 09 '18 at 08:46
-
Also [this](https://stackoverflow.com/questions/24072790/detect-key-press-in-python) answer could be helpful. – toti08 Aug 09 '18 at 08:52