[Tutor] Press ESC to exit()
Michael C
mysecretrobotfactory at gmail.com
Mon May 1 14:12:42 EDT 2017
Hi all, I am trying to write a script to exit itself when ESC is pressed. I
have found several answers regarding it such as this:
http://stackoverflow.com/questions/43709710/push-esc-
to-terminate-python-script?noredirect=1#comment74464169_43709710
But those only work when the program goes to that point.
Is there a way to write it so that it would run exit() even when the
program is in the
background?
Thanks!
More information about the Tutor
mailing list