o
    tf                     @   s   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 deeZee
eG dd deZee
eG dd deZeG d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.
Z
box_paramsc                       s|   e Zd ZdZedjddZedjddZee	e
ddjdddieZeg d	d
ddjddZd fdd	Z  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])
    ZBoxModelTsyncZBoxViewzList of widget children)Ztraithelpr   )successinfowarningZdanger r   z%Use a predefined styling for the box.)valuesdefault_valuer    c                    s   ||d< t  jdi | d S )Nchildrenr   )super__init__)selfr   kwargs	__class__r   f/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/ipywidgets/widgets/widget_box.pyr   >   s   zBox.__init__)r   )__name__
__module____qualname____doc__r
   tag_model_name
_view_namer   r   r   r   r   r   Z	box_styler   __classcell__r   r   r   r   r      s     r   c                   @   0   e Zd ZdZedjddZedj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])
    Z	VBoxModelTr   ZVBoxViewNr    r!   r"   r#   r
   r$   r%   r&   r   r   r   r   r)   B       r)   c                   @   r(   )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])
    Z	HBoxModelTr   ZHBoxViewNr*   r   r   r   r   r,   V   r+   r,   c                   @   r(   )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)
    ZGridBoxModelTr   ZGridBoxViewNr*   r   r   r   r   r-   j   s    r-   N)r#   Zwidgetr   r   r   Z	domwidgetr   Zwidget_corer   Zdocutilsr   Ztrait_typesr   Z	traitletsr
   r   r   Z_doc_snippetsr   r)   r,   r-   r   r   r   r   <module>   s(   !