| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pip/_vendor/rich/__pycache__/ |
Upload File : |
a
X��eN) � @ s d dl mZmZ ddlmZ ddlmZmZ ddlm Z ddl
mZ ddlm
Z
mZ ddlmZmZ dd lmZ dd
lmZmZ ddlmZmZ er�ddlmZmZmZmZ G d
d� de�Ze dk�rddlmZ e� Z!ddlm"Z"mZ ddlmZ eddde"dd�Z#e!�$� e!�$e#� dS )� )�
TYPE_CHECKING�Optional� )�AlignMethod)�ROUNDED�Box)�cell_len)�JupyterMixin)�Measurement�measure_renderables)�Padding�PaddingDimensions)�Segment)�Style� StyleType)�Text�TextType)�Console�ConsoleOptions�RenderableType�RenderResultc @ s e Zd ZdZefddddddddddddd�d eee eee eee e e
e
ee ee ee dd
�dd�Z
eefdddddddddd
� d eee eee eee e
e
ee ed d�dd��Zeee d�dd��Zeee d�dd��Zdddd�dd�Zdddd�dd�ZdS )�Panela� A console renderable that draws a border around its contents.
Example:
>>> console.print(Panel("Hello, World!"))
Args:
renderable (RenderableType): A console renderable object.
box (Box, optional): A Box instance that defines the look of the border (see :ref:`appendix_box`.
Defaults to box.ROUNDED.
safe_box (bool, optional): Disable box characters that don't display on windows legacy terminal with *raster* fonts. Defaults to True.
expand (bool, optional): If True the panel will stretch to fill the console
width, otherwise it will be sized to fit the contents. Defaults to True.
style (str, optional): The style of the panel (border and contents). Defaults to "none".
border_style (str, optional): The style of the border. Defaults to "none".
width (Optional[int], optional): Optional width of panel. Defaults to None to auto-detect.
height (Optional[int], optional): Optional height of panel. Defaults to None to auto-detect.
padding (Optional[PaddingDimensions]): Optional padding around renderable. Defaults to 0.
highlight (bool, optional): Enable automatic highlighting of panel title (if str). Defaults to False.
N�centerTZnone)r r F)�title�title_align�subtitle�subtitle_align�safe_box�expand�style�border_style�width�height�padding� highlightr )�
renderable�boxr r r r r r r r r! r"