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():
robot.forward(1)
wait(.1)
I was exploring the idlelib.rpc.RPCProxy object at sys.stdin, but didn't
see anything obvious.
Any ideas appreciated,
-Doug
_______________________________________________
IDLE-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/idle-dev
