Eye-Detector Using: from main import eye_detector @eye_detector.left def left(): # Your Commands print('left') @eye_detector.right def right(): # Your Commands print('right') eye_detector.init()