Monitor key presses in Python?

eamonnrea at gmail.com eamonnrea at gmail.com
Mon Sep 9 13:39:43 EDT 2013


Is there a way to detect if the user presses a key in Python that works on most OS's? I've only seen 1 method, and that only works in Python 2.6 and less.  If you get the key, can you store it in a variable?

Also, is there a way to create a callback in Python?



More information about the Python-list mailing list