
    bi                     2   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y)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                       e Zd ZdZ ed      j                  d      Z ed      j                  d      Z  e e	e
      d      j
                  dddieZ eg d	d
d      j                  d      Zd f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        |   di | y )Nchildrenr   )super__init__)selfr    kwargs	__class__s      X/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/ipywidgets/widgets/widget_box.pyr"   zBox.__init__>   s    %z"6"    )r   )__name__
__module____qualname____doc__r   tag_model_name
_view_namer	   r   r   r   r    r   	box_styler"   __classcell__)r%   s   @r&   r   r      s     *%))t)4K#''T'2J
 Vz 07PQUU ++)+H  ;28::=#4#. # #r'   r   c                   p    e Zd ZdZ ed      j                  d      Z ed      j                  d      Zy)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*   r+   r   r,   r-   r.   r   r'   r&   r2   r2   B   9     +&***5K$((d(3Jr'   r2   c                   p    e Zd ZdZ ed      j                  d      Z ed      j                  d      Zy)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   HBoxViewNr5   r   r'   r&   r8   r8   V   r6   r'   r8   c                   p    e Zd ZdZ ed      j                  d      Z ed      j                  d      Zy)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   GridBoxViewNr5   r   r'   r&   r<   r<   j   s9    " .)--4-8K'+++6Jr'   r<   N)r+   widgetr   r   r   	domwidgetr   widget_corer   docutilsr   trait_typesr	   	traitletsr   r   r   _doc_snippetsr   r2   r8   r<   r   r'   r&   <module>rF      s    ; :   #  # 8 8 l  

=#)Z #  
#B 

=43 4  
4$ 

=43 4  
4$ 
7c 7 
7r'   