Align a renderable to the center.
(
cls,
renderable: "RenderableType",
style: Optional[StyleType] = None,
*,
vertical: Optional[VerticalAlignMethod] = None,
pad: bool = True,
width: Optional[int] = None,
height: Optional[int] = None,
)
| 98 | |
| 99 | @classmethod |
| 100 | def center( |
| 101 | cls, |
| 102 | renderable: "RenderableType", |
| 103 | style: Optional[StyleType] = None, |
| 104 | *, |
| 105 | vertical: Optional[VerticalAlignMethod] = None, |
| 106 | pad: bool = True, |
| 107 | width: Optional[int] = None, |
| 108 | height: Optional[int] = None, |
| 109 | ) -> "Align": |
| 110 | """Align a renderable to the center.""" |
| 111 | return cls( |
| 112 | renderable, |
| 113 | "center", |
| 114 | style=style, |
| 115 | vertical=vertical, |
| 116 | pad=pad, |
| 117 | width=width, |
| 118 | height=height, |
| 119 | ) |
| 120 | |
| 121 | @classmethod |
| 122 | def right( |
no outgoing calls