Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53897
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!reader01.nrc01.news.zen.net.uk.POSTED!not-for-mail |
|---|---|
| From | Nobody <nobody@nowhere.com> |
| Subject | Re: Monitor key presses in Python? |
| Date | Tue, 10 Sep 2013 02:33:17 +0100 |
| User-Agent | Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
| Message-Id | <pan.2013.09.10.01.33.17.46000@nowhere.com> |
| Newsgroups | comp.lang.python |
| References | <57051d11-abd9-4621-9618-1574cd37545c@googlegroups.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 13 |
| Organization | Zen Internet |
| NNTP-Posting-Host | 86cb2239.news.zen.co.uk |
| X-Trace | DXC=PUa418UIFa;bYhE_Um1Ok?a0UP_O8AJo<=dR0\ckLKG0WeZ<[7LZNR6EIJBnhjG?m0M2Z^cWRFGA;ReT1YLbO:F0 |
| X-Complaints-To | abuse@zen.co.uk |
| Xref | csiph.com comp.lang.python:53897 |
Show key headers only | View raw
On Mon, 09 Sep 2013 10:39:43 -0700, eamonnrea wrote: > 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. There's no "generic" solution to this. At a minimum, there's getting "key presses" from a windowing system and getting character input from a terminal or console. The two cases are themselves quite different, and each case has differences between operating systems.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Monitor key presses in Python? eamonnrea@gmail.com - 2013-09-09 10:39 -0700
Re: Monitor key presses in Python? Dave Angel <davea@davea.name> - 2013-09-09 18:19 +0000
Re: Monitor key presses in Python? John Gordon <gordon@panix.com> - 2013-09-09 18:40 +0000
Re: Monitor key presses in Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-09 23:37 +0000
Re: Monitor key presses in Python? Nobody <nobody@nowhere.com> - 2013-09-10 02:33 +0100
Re: Monitor key presses in Python? Michael Torrie <torriem@gmail.com> - 2013-09-09 20:43 -0600
Re: Monitor key presses in Python? Grant Edwards <invalid@invalid.invalid> - 2013-09-10 14:18 +0000
Re: Monitor key presses in Python? eamonnrea@gmail.com - 2013-09-14 10:44 -0700
Re: Monitor key presses in Python? Roy Smith <roy@panix.com> - 2013-09-14 14:03 -0400
Re: Monitor key presses in Python? eamonnrea@gmail.com - 2013-09-14 11:10 -0700
Re: Monitor key presses in Python? Dave Angel <davea@davea.name> - 2013-09-14 22:03 +0000
Re: Monitor key presses in Python? Paul Rubin <no.email@nospam.invalid> - 2013-09-14 11:42 -0700
csiph-web