Open jezztify opened 2 years ago
import sys from system_hotkey import SystemHotkey, InvalidKeyError try: hk = SystemHotkey() hk.register(["alt","q'"], callback=lambda event: overlay.quit()) except InvalidKeyError: sys.exit() print('IT WENT HERE')
above code will continue and will not execute sys.exit()
sys.exit()
above code will continue and will not execute
sys.exit()