How can I use the up and down,left and right arrow keys to control a Python Pgm

J

jitrowia

I was wondering what kind of python code I would need to enable me to
use the up and down, left and right arrow keys to control software
programming decisions within a Python Program.

Any direction and advice would be greatly appreciated,

Thank You,
Rodney
 
T

Tim Rau

I was wondering what kind of python code I would need to enable me to
use the up and down, left and right arrow keys to control software
programming decisions within a Python Program.

Any direction and advice would be greatly appreciated,

Thank You,
Rodney

"software programming decisions" is awfully vague. COuld oyu narrow
down exactly what you want to do?
 
D

Dennis Lee Bieber

I was wondering what kind of python code I would need to enable me to
use the up and down, left and right arrow keys to control software
programming decisions within a Python Program.

Any direction and advice would be greatly appreciated,

Well... First off, most text consoles don't return "a key" for those
-- they return a control sequence (eg, multiple bytes for each key).
What OS? You may have to enable a raw key mode, you may need to use OS
specific functions to "read" the key sequences...

GUI system? You'll have to bind the key sequence to some
operation...
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top