diff --git a/pandora-box.py b/pandora-box.py index f93c1a0..89bc0b6 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -682,6 +682,7 @@ def error(): display_image("ERROR") return "WAIT" + # ----------------------------------------------------------- # Wait for mouse click or enter # ----------------------------------------------------------- @@ -690,6 +691,7 @@ mouseEvent = threading.Event() enterEvent = threading.Event() mouseOrEnterCondition = threading.Condition() + def mouseClickThread(): mouse = open("/dev/input/mice", "rb") os.set_blocking(mouse.fileno(), False)