[WIP] Montor table cells adjusted

This commit is contained in:
jpk 2023-05-21 18:59:52 +02:00
parent 96647df9c0
commit 4d513d4d10
1 changed files with 5 additions and 9 deletions

View File

@ -15,12 +15,12 @@ from ...tools.context import BlattedEnvironment
environment = context.get_environment()
console = context.get_console()
table = Table(width=100)
table = Table()
live = Live(table, console=console)
table.add_column("Service", max_width=18)
table.add_column("UUID", max_width=18)
table.add_column("Size", max_width=6)
table.add_column("data", width=58)
table.add_column("Service", width=32)
table.add_column("UUID", width=36)
table.add_column("Size", justify="right")
table.add_column("Received Data", width=80)
class Monitor(Dispatcher):
@ -45,10 +45,6 @@ class Monitor(Dispatcher):
pass # TODO Implement
def on_acquire_notify(self, service: BleakGATTCharacteristicBlueZDBus) -> None:
# print(type(service))
# print(service.description)
# print(service.uuid)
# print(service.service_uuid)
table.add_row(f"{service.description}", f"{service.uuid}", "", "")
def on_update_service(self, data) -> None: