Skip to content

rs_rich.panel

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rich.panel: panels.

Panel

renderable instance-attribute

renderable: RenderableType

box instance-attribute

box: Box

title instance-attribute

title: Optional[Union[str, Text]]

title_align instance-attribute

title_align: AlignMethod

subtitle instance-attribute

subtitle: Optional[Union[str, Text]]

subtitle_align instance-attribute

subtitle_align: AlignMethod

safe_box instance-attribute

safe_box: Optional[bool]

expand instance-attribute

expand: bool

style instance-attribute

style: StyleType

border_style instance-attribute

border_style: StyleType

width instance-attribute

width: Optional[int]

height instance-attribute

height: Optional[int]

padding instance-attribute

padding: PaddingDimensions

highlight instance-attribute

highlight: bool

fit classmethod

fit(renderable: RenderableType, box: Box = ..., *, title: Optional[Union[str, Text]] = None, title_align: AlignMethod = 'center', subtitle: Optional[Union[str, Text]] = None, subtitle_align: AlignMethod = 'center', safe_box: Optional[bool] = None, style: Optional[StyleType] = None, border_style: Optional[StyleType] = None, width: Optional[int] = None, height: Optional[int] = None, padding: Optional[PaddingDimensions] = None, highlight: bool = False) -> Panel