Click events: Modules output is udated and status line is refreshed after a valid click event callback is executed.

This commit is contained in:
Lukáš Mandák 2015-06-22 11:43:52 +02:00
parent 7dd99604be
commit ba01a7af44

View File

@ -29,8 +29,9 @@ class CommandEndpoint:
def _command_endpoint(self): def _command_endpoint(self):
for command in self.io_handler_factory().read(): for command in self.io_handler_factory().read():
target_module = self.modules.get(command["instance"]) target_module = self.modules.get(command["instance"])
if target_module: if target_module and target_module.on_click(command["button"]):
target_module.on_click(command["button"]) target_module.run()
io.StandaloneIO.async_refresh()
class Status: class Status: