Method: rich.layout._Placeholder.__rich_console__
Calls: 4, Exceptions: 4, Paths: 1Back
Path 1: 4 calls (1.0)
Console (4)
ConsoleOptions (4)
Panel (4) None (4)
GeneratorExit (4)
1def __rich_console__(
2 self, console: Console, options: ConsoleOptions
3 ) -> RenderResult:
4 width = options.max_width
5 height = options.height or options.size.height
6 layout = self.layout
7 title = (
8 f"{layout.name!r} ({width} x {height})"
9 if layout.name
10 else f"({width} x {height})"
11 )
12 yield Panel(
13 Align.center(Pretty(layout), vertical="middle"),
14 style=self.style,
15 title=self.highlighter(title),
16 border_style="blue",
17 height=height,
18 )