|
|
@ -226,7 +226,7 @@ class StateMachineController(object): |
|
|
|
self.__evqueue.put((evname, evargs, evkwargs)) |
|
|
|
self.__evqueue.put((evname, evargs, evkwargs)) |
|
|
|
|
|
|
|
|
|
|
|
def set_timeout(self, timeout): |
|
|
|
def set_timeout(self, timeout): |
|
|
|
self.__timeout = threading.Timer(timeout/1000, lambda: self.queue_event('timeout')) |
|
|
|
self.__timeout = threading.Timer(timeout/1000, self.queue_event, args=['timeout']) |
|
|
|
self.__timeout.start() |
|
|
|
self.__timeout.start() |
|
|
|
|
|
|
|
|
|
|
|
def abort_timeout(self): |
|
|
|
def abort_timeout(self): |
|
|
|