
    geH                        d Z ddlmZmZ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mZmZ i Zd	ed
<   e e
e           G d dee                                  Ze e
e           G d de                                  Ze e
e           G d de                                  Ze G d de                      ZdS )zBox widgets.

These widgets are containers that can be used to
group other widgets together and control their
relative layouts.
   )registerwidget_serializationWidget)	DOMWidget)
CoreWidget)	doc_subst)
TypedTuple    )UnicodeCaselessStrEnumInstancea  
    children: iterable of Widget instances
        list of widgets to display

    box_style: str
        one of 'success', 'info', 'warning' or 'danger', or ''.
        Applies a predefined style to the box. Defaults to '',
        which applies no pre-defined style.

box_paramsc                   4    e Zd ZdZ ed                              d          Z ed                              d          Z  e e	e
          d          j        dddieZ eg d	d
d                              d          Zd fd	Zd Z xZS )BoxaT   Displays multiple widgets in a group.

    The widgets are laid out horizontally.

    Parameters
    ----------
    {box_params}

    Examples
    --------
    >>> import ipywidgets as widgets
    >>> title_widget = widgets.HTML('<em>Box Example</em>')
    >>> slider = widgets.IntSlider()
    >>> widgets.Box([title_widget, slider])
    BoxModelTsyncBoxViewzList of widget children)traithelpr   )successinfowarningdanger r   z%Use a predefined styling for the box.)valuesdefault_valuer    c                     ||d<    t          t          |           j        di | |                     t          j                   d S )Nchildrenr   )superr   __init__on_displayed_fire_children_displayed)selfr    kwargs	__class__s      =lib/python3.11/site-packages/ipywidgets/widgets/widget_box.pyr"   zBox.__init__>   sM    %z!c4!++F+++#677777    c                 B    | j         D ]}|                                 d S )N)r    _handle_displayed)r%   childs     r(   r$   zBox._fire_children_displayedC   s2    ] 	& 	&E##%%%%	& 	&r)   )r   )__name__
__module____qualname____doc__r   tag_model_name
_view_namer	   r   r   r   r    r   	box_styler"   r$   __classcell__)r'   s   @r(   r   r      s         '*%%))t)44K##''T'22J
 Vzz 0 07PQQQU + ++)+ +H  ;;;28: : ::=#4#.. 8 8 8 8 8 8
& & & & & & &r)   r   c                       e Zd ZdZ ed                              d          Z ed                              d          ZdS )VBoxaO   Displays multiple widgets vertically using the flexible box model.

    Parameters
    ----------
    {box_params}

    Examples
    --------
    >>> import ipywidgets as widgets
    >>> title_widget = widgets.HTML('<em>Vertical Box Example</em>')
    >>> slider = widgets.IntSlider()
    >>> widgets.VBox([title_widget, slider])
    	VBoxModelTr   VBoxViewNr-   r.   r/   r0   r   r1   r2   r3   r   r)   r(   r7   r7   H   Z          '+&&***55K$$((d(33JJJr)   r7   c                       e Zd ZdZ ed                              d          Z ed                              d          ZdS )HBoxaS   Displays multiple widgets horizontally using the flexible box model.

    Parameters
    ----------
    {box_params}

    Examples
    --------
    >>> import ipywidgets as widgets
    >>> title_widget = widgets.HTML('<em>Horizontal Box Example</em>')
    >>> slider = widgets.IntSlider()
    >>> widgets.HBox([title_widget, slider])
    	HBoxModelTr   HBoxViewNr:   r   r)   r(   r=   r=   \   r;   r)   r=   c                       e Zd ZdZ ed                              d          Z ed                              d          ZdS )GridBoxa[   Displays multiple widgets in rows and columns using the grid box model.

    Parameters
    ----------
    {box_params}

    Examples
    --------
    >>> import ipywidgets as widgets
    >>> title_widget = widgets.HTML('<em>Grid Box Example</em>')
    >>> slider = widgets.IntSlider()
    >>> button1 = widgets.Button(description='1')
    >>> button2 = widgets.Button(description='2')
    >>> # Create a grid with two columns, splitting space equally
    >>> layout = widgets.Layout(grid_template_columns='1fr 1fr')
    >>> widgets.GridBox([title_widget, slider, button1, button2], layout=layout)
    GridBoxModelTr   GridBoxViewNr:   r   r)   r(   rA   rA   p   sZ         " '.))--4-88K''+++66JJJr)   rA   N)r0   widgetr   r   r   	domwidgetr   widget_corer   docutilsr   trait_typesr	   	traitletsr   r   r   _doc_snippetsr   r7   r=   rA   r   r)   r(   <module>rK      s    ; : : : : : : : : :             # # # # # #       # # # # # # 8 8 8 8 8 8 8 8 8 8 l  

=$& $& $& $& $&)Z $& $&  
$&N 

=4 4 4 4 43 4 4  
4$ 

=4 4 4 4 43 4 4  
4$ 
7 7 7 7 7c 7 7 
7 7 7r)   