Monitor key presses in Python?
John Gordon
gordon at panix.com
Mon Sep 9 14:40:35 EDT 2013
In <57051d11-abd9-4621-9618-1574cd37545c at googlegroups.com> eamonnrea at gmail.com writes:
> Is there a way to detect if the user presses a key in Python that works on
> most OS's?
That depends on what you're really asking; your question is somewhat vague.
Are you asking for a function that waits for the user to press a key and
then returns the key that was pressed?
Or are you asking for a function that detects whether a key has been
pressed at all?
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list