MCPcopy
hub / github.com/Textualize/rich / __rich__

Method __rich__

examples/fullscreen.py:75–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 """Display header with clock."""
74
75 def __rich__(self) -> Panel:
76 grid = Table.grid(expand=True)
77 grid.add_column(justify="center", ratio=1)
78 grid.add_column(justify="right")
79 grid.add_row(
80 "[b]Rich[/b] Layout application",
81 datetime.now().ctime().replace(":", "[blink]:[/]"),
82 )
83 return Panel(grid, style="white on blue")
84
85
86def make_syntax() -> Syntax:

Callers

nothing calls this directly

Calls 5

PanelClass · 0.90
gridMethod · 0.80
add_columnMethod · 0.80
add_rowMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected