-----Original Message----- From: Tutor [mailto:tutor-bounces+d.wilder=f5....@python.org] On Behalf Of Dave Angel Sent: Friday, February 01, 2013 7:38 AM To: tutor@python.org Subject: Re: [Tutor] Need to be able to accept Page Down or CTRL-E
On 02/01/2013 03:34 AM, Alan Gauld wrote: >> >> <snip> >> >> OTOH if you mean you want to send the page up/down/arrows as the >> "something" then its a different game and you can do it. In that case >> you need todo what you did with ESC. The character set your external >> app uses will determine the codes you send. Assuming its the same set >> as your local setup you can use the following program(untested!) to >> read the codes from your keyboard (assuming you are on Windows): >> >> import msvcrt >> >> print "Hit space to end..." >> print >> >> while True: >> ky = msvcrt.getch() > The OP is running Python 2.73 on Linux. Okay, thanks Alan and Dave. I will look into this a little more and if need be, email the list again but taking Dave's advice and start over w/ a clearer problem statement. Dave -- DaveA _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor