U ʗRe(" @ s d dl mZmZ ddlmZ ddlmZmZ ddlm Z ddl mZmZ ddl mZmZ ddlmZ dd lmZ dd lmZmZ erddlmZmZmZmZ G dd d e ZedkrddlmZ e ZddlmZmZ ddl mZ edddeddZ e! e!e dS ) ) TYPE_CHECKINGOptional )AlignMethod)ROUNDEDBox)JupyterMixin)Measurementmeasure_renderables)PaddingPaddingDimensions)Segment) StyleType)TextTextType)ConsoleConsoleOptionsRenderableTypeRenderResultc @ s e Zd ZdZefdddddddddddddd eee eee eee e e e ee ee ee dd ddZ eefdddddddddd d eee eee eee e e ee ed dddZeee dddZeee dddZddddddZddddddZdS )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. NcenterTnone)r r F)titletitle_alignsubtitlesubtitle_alignsafe_boxexpandstyleborder_stylewidthheightpadding highlightr ) renderableboxr r r r r r r r r r! r" r# returnc C sX || _ || _|| _|| _|| _|| _|| _|| _| | _| | _ || _ || _| | _|| _ d S )N)r$ r% r r r r r r r r r r! r" r# )selfr$ r% r r r r r r r r r r! r" r# r( /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/rich/panel.py__init__% s zPanel.__init__) r r r r r r r r r" )r$ r% r r r r r r r r r" r&