|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/local/lib/python3.9/site-packages/prompt_toolkit/widgets/__pycache__/ |
a
��Sh4
� @ 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&