目次
コンテンツの周りにスペースを描画します。
例
>>> print(Padding("Hello", (2, 4), style="on blue"))
renderable (RenderableType) – 文字列またはその他のレンダリング可能なもの。
pad (Union[int, Tuple[int]]) – 上、右、下、左の境界線のパディング。1、2、または 4 つの整数 (CSS スタイル) で指定できます。
style (Union[str, Style], optional) – パディング文字のスタイル。デフォルトは "none"。
expand (bool, optional) – 利用可能な幅に合わせてパディングを拡張します。デフォルトは True。
インデントをレンダリングするためのパディングインスタンスを作成します。
level (int) – インデントする文字数。
パディングインスタンス。
パディング
CSSスタイルで指定されたパディングをアンパックします。
pad (Union[int, Tuple[int], Tuple[int, int], Tuple[int, int, int, int]]) –
Tuple[int, int, int, int]