Using the following script, the (Windows 7) PC echoes the key presses but doesn't quit (ever!)
import msvcrt
print('Press SPACE to stop...')
while True:
k = msvcrt.getch() # Strangely, this echoes to the IDLE window
if k == ' ': # Not recognized
break
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
