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

Method left

rich/align.py:78–97  ·  view source on GitHub ↗

Align a renderable to the left.

(
        cls,
        renderable: "RenderableType",
        style: Optional[StyleType] = None,
        *,
        vertical: Optional[VerticalAlignMethod] = None,
        pad: bool = True,
        width: Optional[int] = None,
        height: Optional[int] = None,
    )

Source from the content-addressed store, hash-verified

76
77 @classmethod
78 def left(
79 cls,
80 renderable: "RenderableType",
81 style: Optional[StyleType] = None,
82 *,
83 vertical: Optional[VerticalAlignMethod] = None,
84 pad: bool = True,
85 width: Optional[int] = None,
86 height: Optional[int] = None,
87 ) -> "Align":
88 """Align a renderable to the left."""
89 return cls(
90 renderable,
91 "left",
92 style=style,
93 vertical=vertical,
94 pad=pad,
95 width=width,
96 height=height,
97 )
98
99 @classmethod
100 def center(

Callers 2

test_shortcutsFunction · 0.80
align.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

test_shortcutsFunction · 0.64