Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39391 > unrolled thread
| Started by | Ned Deily <nad@acm.org> |
|---|---|
| First post | 2013-02-20 19:36 -0800 |
| Last post | 2013-02-20 19:36 -0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Read arrow keys Ned Deily <nad@acm.org> - 2013-02-20 19:36 -0800
| From | Ned Deily <nad@acm.org> |
|---|---|
| Date | 2013-02-20 19:36 -0800 |
| Subject | Re: Read arrow keys |
| Message-ID | <mailman.2136.1361417816.2939.python-list@python.org> |
In article <51255C8A.7090302@bigpond.com>, Phil <phil_lor@bigpond.com> wrote: > I'm attempting to put a simple remote control program together and to do > so I need to check if the arrows are pressed. I could probably do this > with pyqt4 but I'm looking for something simple to experiment with. > > Pygame looked like a suitable solution but the error message makes me > think that pygame doesn't work from the console: > > "video system not initialized" > > Is there a simple way to read the direction keys within a while loop? You don't say which o/s platform(s) you are interested in but, if they are all unix-y and you don't mind running from a shell terminal session, you could just use the venerable curses module in the Python standard library. http://docs.python.org/3/library/curses.html -- Ned Deily, nad@acm.org
Back to top | Article view | comp.lang.python
csiph-web