o
    i                     @   sh   d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	 er*ddl
mZ ddlmZ G dd	 d	eZd
S )zUModule contains the main message window :class:`~prompt_toolkit.container.Container`.    )TYPE_CHECKING)ConditionalContainerWindow)FormattedTextControl)LayoutDimension)FilterOrBool)AnyFormattedTextc                       s<   e Zd ZdZ		ddddddeded	d
f
 fddZ  ZS )MessageWindowa~  Main window to display question to the user.

    Args:
        message: The message to display in the terminal.
        filter: Condition that this message window should be displayed.
            Use a loading condition to only display this window while its not loading.
        wrap_lines: Enable line wrapping if the message is too long.
        show_cursor: Display cursor.
    Tmessager   filterr   
wrap_linesshow_cursorreturnNc                    s>   t  jtd|stdnd t||d|dd||d d S )N   )r   T)heightcontentr   dont_extend_height)r   r    )super__init__r   r   exactr   )selfr
   r   r   r   kwargs	__class__r   Z/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/InquirerPy/containers/message.pyr      s   

zMessageWindow.__init__)TT)__name__
__module____qualname____doc__boolr   __classcell__r   r   r   r   r	      s    r	   N)r   typingr    prompt_toolkit.layout.containersr   r   prompt_toolkit.layout.controlsr   prompt_toolkit.layout.dimensionr   prompt_toolkit.filters.baser   "prompt_toolkit.formatted_text.baser   r	   r   r   r   r   <module>   s    