how to specify a key to be as a break fomction python

Solutions on MaxInterview for how to specify a key to be as a break fomction python by the best coders in the world

showing results for - "how to specify a key to be as a break fomction python"
Mike
13 Aug 2017
1pip install keyboard
2
3import keyboard
4
5while True:
6    # do something
7    if keyboard.is_pressed("q"):
8        print("q pressed, ending loop")
9        break
Michelle
07 Aug 2017
1if exp.response == 'space':
2    breaking_variable = False
similar questions