INNER CODE UNIT · Python

_build_table

Chanchaldhiman/CANviz · backend/canviz/cli.py:457

    def _build_table() -> Table:
        table = Table(
            show_header=True,
            header_style="bold cyan",
            border_style="dim",
            expand=True,
        )
        table.add_column("ID (hex)",   style="cyan",  no_wrap=True, min_width=10)
        table.add_column("Name",       style="white", no_wrap=True, min_width=16)

        if j1939:
            table.add_column("PGN",      style="blue",   no_wrap=True, min_width=8)
            table.add_column("PGN Name", style="white",  no_wrap=True, min_width=22)
            table.add_column("SA",       style="yellow", no_wrap=True, min_width=12)

        table.add_column("DLC",        style="dim",   no_wrap=True, min_width=4, justify="right")
        table.add_column("Data",       no_wrap=True,  min_width=24)
        table.add_column("Count",      justify="right", min_width=8)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…