B
    't\                 @   sj   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
gZdd
 ZdS )zZ
Dummy layout. Used when somebody creates an `Application` without specifying a
`Layout`.
    )unicode_literals)HTML)KeyBindings   )Window)FormattedTextControl)D)Layoutcreate_dummy_layoutc              C   sF   t  } | 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.
    enterc             S   s   | j   d S )N)Zappexit)Zevent r   :lib/python3.7/site-packages/prompt_toolkit/layout/dummy.pyr      s    z"create_dummy_layout.<locals>.enterz<No layout specified. Press <reverse>ENTER</reverse> to quit.)Zkey_bindingsr   )min)ZcontentZheight)Z	containerZfocused_element)r   addr   r   r   r   r	   )Zkbr   ZcontrolZwindowr   r   r   r
      s    N)__doc__Z
__future__r   Zprompt_toolkit.formatted_textr   Zprompt_toolkit.key_bindingr   Z
containersr   Zcontrolsr   Z	dimensionr   Zlayoutr	   __all__r
   r   r   r   r   <module>   s   