comparison libervia/cli/output_xmlui.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 47401850dec6
children
comparison
equal deleted inserted replaced
4269:64a85ce8be70 4270:0d7bb4df2343
33 """Outputs for XMLUI""" 33 """Outputs for XMLUI"""
34 34
35 def __init__(self, host): 35 def __init__(self, host):
36 self.host = host 36 self.host = host
37 host.register_output(C.OUTPUT_XMLUI, "simple", self.xmlui, default=True) 37 host.register_output(C.OUTPUT_XMLUI, "simple", self.xmlui, default=True)
38 host.register_output( 38 host.register_output(C.OUTPUT_LIST_XMLUI, "simple", self.xmlui_list, default=True)
39 C.OUTPUT_LIST_XMLUI, "simple", self.xmlui_list, default=True
40 )
41 39
42 async def xmlui(self, data): 40 async def xmlui(self, data):
43 xmlui = xmlui_manager.create(self.host, data) 41 xmlui = xmlui_manager.create(self.host, data)
44 await xmlui.show(values_only=True, read_only=True) 42 await xmlui.show(values_only=True, read_only=True)
45 self.host.disp("") 43 self.host.disp("")