Skip to content

Instantly share code, notes, and snippets.

@carlosa8c
Forked from EnumCode/listener.py
Created October 15, 2018 03:43
Show Gist options
  • Save carlosa8c/934fb3c59bca3e391fe19da0e3ad38f9 to your computer and use it in GitHub Desktop.
Save carlosa8c/934fb3c59bca3e391fe19da0e3ad38f9 to your computer and use it in GitHub Desktop.
listener that triggers the main program
import threading
import pyazo
import keyboard
wxTest.main()
lock=threading.Lock()
while True:
keyboard.wait('ctrl+shift+d')
lock.acquire()
pyazo.main()
lock.release()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment