Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53917
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail |
|---|---|
| From | Grant Edwards <invalid@invalid.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: Monitor key presses in Python? |
| Date | Tue, 10 Sep 2013 14:18:09 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 23 |
| Message-ID | <l0n9n1$kpu$1@reader1.panix.com> (permalink) |
| References | <57051d11-abd9-4621-9618-1574cd37545c@googlegroups.com> |
| NNTP-Posting-Host | dsl.comtrol.com |
| X-Trace | reader1.panix.com 1378822689 21310 64.122.56.22 (10 Sep 2013 14:18:09 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Tue, 10 Sep 2013 14:18:09 +0000 (UTC) |
| User-Agent | slrn/1.0.1 (Linux) |
| Xref | csiph.com comp.lang.python:53917 |
Show key headers only | View raw
On 2013-09-09, eamonnrea@gmail.com <eamonnrea@gmail.com> wrote:
> Is there a way to detect if the user presses a key in Python that
> works on most OS's?
No. Unless by "most OSes" you mean "most Unixes" or "most Windows".
> 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?
Sure.
> Also, is there a way to create a callback in Python?
Yes.
--
Grant Edwards grant.b.edwards Yow! I'm having an
at EMOTIONAL OUTBURST!! But,
gmail.com uh, WHY is there a WAFFLE
in my PAJAMA POCKET??
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