o
    Df                     @  s|   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ dd	lmZ dd
lmZ dgZeZdddZdS )zZ
Dummy layout. Used when somebody creates an `Application` without specifying a
`Layout`.
    )annotations)HTML)KeyBindings)KeyPressEvent   )Window)FormattedTextControl)D)Layoutcreate_dummy_layoutreturnr
   c                  C  sH   t  } | dddd}ttd| d	}t|td
dd}t||dS )z
    Create a dummy layout for use in an 'Application' that doesn't have a
    layout specified. When ENTER is pressed, the application quits.
    entereventEr   Nonec                 S  s   | j   d S )N)appexit)r    r   T/home/ubuntu/webapp/venv/lib/python3.10/site-packages/prompt_toolkit/layout/dummy.pyr      s   z"create_dummy_layout.<locals>.enterz<No layout specified. Press <reverse>ENTER</reverse> to quit.)key_bindingsr   )min)contentheight)	containerfocused_elementN)r   r   r   r   )r   addr   r   r   r	   r
   )kbr   controlwindowr   r   r   r      s   N)r   r
   )__doc__
__future__r   prompt_toolkit.formatted_textr   prompt_toolkit.key_bindingr   (prompt_toolkit.key_binding.key_processorr   
containersr   controlsr   	dimensionr	   layoutr
   __all__r   r   r   r   r   r   <module>   s    