
    geV                         d 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  G d d	eee          Ze G d
 de                      Ze G d de                      Ze G d de                      ZdS )z2Bool class.

Represents a boolean using a widget.
   )DescriptionWidget)
CoreWidget)ValueWidget)register    )UnicodeBoolCaselessStrEnumc                        e Zd ZdZ edd                              d          Z edd                              d          Zd fd		Z e	d
                              d          Z
 xZS )_Boolz:A base class for creating widgets that represent booleans.Fz
Bool valuehelpTsynczEnable or disable user changes.Nc                 V    |||d<    t          t          |           j        di | d S )Nvalue )superr   __init__)selfr   kwargs	__class__s      >lib/python3.11/site-packages/ipywidgets/widgets/widget_bool.pyr   z_Bool.__init__   s;    #F7O#eT#--f-----    	BoolModel)N)__name__
__module____qualname____doc__r	   tagr   disabledr   r   _model_name__classcell__)r   s   @r   r   r      s        DDD\***..D.99EtE ABBBFFDFQQH. . . . . .
 '+&&***55KKKKKr   r   c                       e Zd ZdZ ed                              d          Z ed                              d          Z edd                              d          Z	dS )	Checkboxa  Displays a boolean `value` in the form of a checkbox.

    Parameters
    ----------
    value : {True,False}
        value of the checkbox: True-checked, False-unchecked
    description : str
	    description displayed next to the checkbox
    indent : {True,False}
        indent the control to align with other controls with a description. The style.description_width attribute controls this width for consistence with other controls.
    CheckboxViewTr   CheckboxModelzCIndent the control to align with other controls with a description.r   N)
r   r   r   r   r   r    
_view_namer"   r	   indentr   r   r   r%   r%      s        
 
 ((,,$,77J'/**..D.99KT$bcccggmqgrrFFFr   r%   c                   X   e Zd ZdZ ed                              d          Z ed                              d          Z ed                              d          Z edd	                              d          Z	 e
g d
dd                              d          ZdS )ToggleButtonaj  Displays a boolean `value` in the form of a toggle button.

    Parameters
    ----------
    value : {True,False}
        value of the toggle button: True-pressed, False-unpressed
    description : str
	      description displayed next to the button
    tooltip: str
        tooltip caption of the toggle button
    icon: str
        font-awesome icon name
    ToggleButtonViewTr   ToggleButtonModelz%Tooltip caption of the toggle button.r    zFont-awesome icon.)primarysuccessinfowarningdangerr.   z(Use a predefined styling for the button.)valuesdefault_valuer   N)r   r   r   r   r   r    r(   r"   tooltipiconr
   button_styler   r   r   r+   r+   /   s          +,,00d0;;J'-..222==KgBCCCGGTGRRG72122266D6AAD"?FFFVX;= = ==@SdS^^ LLr   r+   c                       e Zd ZdZ edd                              d          Z ed                              d          Z ed                              d          Zd	S )
ValidzDisplays a boolean `value` in the form of a green check (True / valid)
    or a red cross (False / invalid).

    Parameters
    ----------
    value: {True,False}
        value of the Valid widget
    Invalidz)Message displayed when the value is Falser   Tr   	ValidView
ValidModelN)	r   r   r   r   r   r    readoutr(   r"   r   r   r   r:   r:   I   s          gi&QRRRVV\`VaaG%%))t)44J',''+++66KKKr   r:   N)r   widget_descriptionr   widget_corer   valuewidgetr   widgetr   	traitletsr   r	   r
   r   r%   r+   r:   r   r   r   <module>rD      sb   
 2 1 1 1 1 1 # # # # # # $ $ $ $ $ $       4 4 4 4 4 4 4 4 4 4
6 
6 
6 
6 
6{J 
6 
6 
6 
s s s s su s s 
s" 
L L L L L5 L L 
L2 
7 7 7 7 7E 7 7 
7 7 7r   