%PDF- %PDF-
Direktori : /lib/python3/dist-packages/rich/__pycache__/ |
Current File : //lib/python3/dist-packages/rich/__pycache__/padding.cpython-312.pyc |
� "T�e^ � �� � d dl mZmZmZmZmZmZ erddlmZm Z m Z mZ ddlm Z ddlmZ ddlmZ ddlmZ eeee eeef eeeeef f Z G d� d e � Zed k( rd dlmZ e edd d�� � yy)� )�cast�List�Optional�Tuple� TYPE_CHECKING�Union� )�Console�ConsoleOptions�RenderableType�RenderResult)�JupyterMixin)�Measurement)�Style)�Segmentc � � e Zd ZdZ dddd�ddddd eeef d efd�Ze ddde d d fd�� Zeddd e e e e e f fd�� Zd efd�Z dd�Z dd�Zy)�Paddinga Draw space around content. Example: >>> print(Padding("Hello", (2, 4), style="on blue")) Args: renderable (RenderableType): String or other renderable. pad (Union[int, Tuple[int]]): Padding for top, right, bottom, and left borders. May be specified with 1, 2, or 4 integers (CSS style). style (Union[str, Style], optional): Style for padding characters. Defaults to "none". expand (bool, optional): Expand padding to fit available width. Defaults to True. �noneT)�style�expand� renderabler �pad�PaddingDimensionsr r c � � || _ | j |� \ | _ | _ | _ | _ || _ || _ y )N)r �unpack�top�right�bottom�leftr r )�selfr r r r s �./usr/lib/python3/dist-packages/rich/padding.py�__init__zPadding.__init__! s8 � � %���7;�{�{�3�7G�4���$�*�d�k�4�9��� ���� �level�returnc �&