From d08c7d772e6a64ba585ce21b90053813e23941aa Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 24 Apr 2017 21:47:23 +0200 Subject: [PATCH] remove unneeded import Lock --- src/fenrir/core/eventManager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fenrir/core/eventManager.py b/src/fenrir/core/eventManager.py index 329d05d3..a5c11b95 100644 --- a/src/fenrir/core/eventManager.py +++ b/src/fenrir/core/eventManager.py @@ -8,7 +8,7 @@ from queue import Empty import time from enum import Enum -from multiprocessing import Process, Queue, Lock +from multiprocessing import Process, Queue from multiprocessing.sharedctypes import Value from ctypes import c_bool @@ -108,15 +108,15 @@ class eventManager(): self.putToEventQueue(event, Data) def p(): - time.sleep(1.5) + time.sleep(0.02) return("p") - +i = 1 e = eventManager() e.addEventThread(fenrirEventType.ScreenUpdate,p) -#e.addEventThread(fenrirEventType.BrailleInput,p) -#e.addEventThread(fenrirEventType.PlugInputDevice,p) -#e.addEventThread(fenrirEventType.ScreenChanged,p) +e.addEventThread(fenrirEventType.BrailleInput,p) +e.addEventThread(fenrirEventType.PlugInputDevice,p) +e.addEventThread(fenrirEventType.ScreenChanged,p) time.sleep(1.5) e.addEventThread(fenrirEventType.StopMainLoop,e.stopMainEventLoop) s = time.time()