Click events: Modules output is udated and status line is refreshed after a valid click event callback is executed.
This commit is contained in:
parent
7dd99604be
commit
ba01a7af44
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user