Created
March 31, 2022 15:29
-
-
Save HuangJiaLian/c462e3d7d21b528111ec3716a645ef79 to your computer and use it in GitHub Desktop.
Q key to exit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def key_pressed(event): | |
global ON | |
if event.char == ' ': | |
ON = not ON | |
elif event.char == 't': | |
tap_estimate() | |
elif event.char == 'q': | |
exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment