Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/prompt_toolkit/widgets/__pycache__/dialogs.cpython-39.pyc
Ðазад
a d�h4 � @ s� d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddl mZmZ ddl mZ ddlmZmZmZmZ dd lmZ dd lmZ ddlmZmZmZmZ d gZG dd � d �ZdS )zJ Collection of reusable components for building full screen applications. � )�annotations)�Sequence)�has_completions� has_focus)�AnyFormattedText)� focus_next�focus_previous)�KeyBindings)�AnyContainer�DynamicContainer�HSplit�VSplit)�AnyDimension)� Dimension� )�Box�Button�Frame�Shadow�Dialogc @ s: e Zd ZdZddddd d d dd�d d�Zdd�dd�ZdS )r a� Simple dialog window. This is the base for input dialogs, message dialogs and confirmation dialogs. Changing the title and body of the dialog is possible at runtime by assigning to the `body` and `title` attributes of this class. :param body: Child container object. :param title: Text to be displayed in the heading of the dialog. :param buttons: A list of `Button` widgets, displayed at the bottom. � NTFr r zSequence[Button] | None�boolr �None)�body�title�buttons�modal�width�with_background�returnc s: |� _ |� _|pg }t� }t|�dkrft|d �}t|d �} |jd| d�t� |jd| d�t� |r�tt t � fdd��tddd �dd �t t|d|d�tdddd �d�g�} n|} t� }|jdt d�t� |jdt d�t� tt� fdd�| d|d u �rd n|||d�d�}� |�r0t |d|d�� _n|� _d S )Nr r ����left)�filter�rightc s � j S �N�r � ��selfr&