[core/input] Add callback deregistration

Enable components to unregister callbacks (i.e. for dynamic widgets).

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-10 10:26:07 +01:00
parent 761b81970d
commit 918d7a6046
3 changed files with 51 additions and 3 deletions

View file

@ -108,7 +108,7 @@ class Engine(object):
self._output.flush()
self._output.end()
if self.running():
time.sleep(1)
self.input.wait(self._config.get("interval", 1))
self._output.stop()
self.input.stop()