From 00576b225ad8b60ef1e0291e231aa499042436ba Mon Sep 17 00:00:00 2001 From: dxiao Date: Sun, 20 Feb 2011 17:52:18 -0500 Subject: Added an InitialLocationInput --- operationscore/Input.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'operationscore/Input.py') diff --git a/operationscore/Input.py b/operationscore/Input.py index 7720847..8800556 100644 --- a/operationscore/Input.py +++ b/operationscore/Input.py @@ -14,6 +14,7 @@ class Input(ThreadedSmootCoreObject): if not 'RefreshInterval' in self.argDict: self.argDict['RefreshInterval'] = 500 self.parentScope = self.argDict['parentScope'] + self.done = False self.inputInit() def respond(self, eventDict): @@ -44,6 +45,8 @@ class Input(ThreadedSmootCoreObject): self.acquireLock() self.sensingLoop() self.releaseLock() + if self.done: + break def sensingLoop(self): pass -- cgit v1.2.3