← Back
Editing: dummy.cpython-311.pyc
� �Ïc� � �t � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ dd l mZ d gZeZdefd�Zd S )zZ Dummy layout. Used when somebody creates an `Application` without specifying a `Layout`. � )�HTML)�KeyBindings)� KeyPressEvent� )�Window)�FormattedTextControl)�D)�Layout�create_dummy_layout�returnc � � t � � } | � d� � dt ddfd�� � }t t d� � | �� � }t |t d� � � � � � }t ||�� � 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�eventr Nc �8 � | j � � � d S )N)�app�exit)r s �=/usr/lib/python3/dist-packages/prompt_toolkit/layout/dummy.pyr z"create_dummy_layout.<locals>.enter s � � � �������� z<No layout specified. Press <reverse>ENTER</reverse> to quit.)�key_bindingsr )�min)�content�height)� container�focused_element)r �add�Er r r r r )�kbr �control�windows r r r s� � � ���B��V�V�G�_�_��Q� �4� � � � �_�� #�� K�L�L��� � �G� �G�A�!�H�H�H� 5� 5� 5�F��F�F�;�;�;�;r N)�__doc__�prompt_toolkit.formatted_textr �prompt_toolkit.key_bindingr �(prompt_toolkit.key_binding.key_processorr � containersr �controlsr � dimensionr �layoutr �__all__r r � r r �<module>r* s� ��� � /� .� .� .� .� .� 2� 2� 2� 2� 2� 2� B� B� B� B� B� B� � � � � � � *� *� *� *� *� *� � � � � � � � � � � � � ��� ��<�V� <� <� <� <� <� <r
Save File
Cancel