[Idle-dev] non-blocking getch() or kbhit() in IDLE

Douglas S. Blank dblank at brynmawr.edu
Tue Sep 4 23:11:32 CEST 2007

Is there a way in IDLE to check to see if a key has been pressed without 
blocking? Either cross-platform or otherwise? I'd like to have students 
write code like:

while not keyPress():

I was exploring the idlelib.rpc.RPCProxy object at sys.stdin, but didn't 
see anything obvious.

Any ideas appreciated,


More information about the IDLE-dev mailing list