
    hMh                         d Z ddlmZm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 dd
lZe G d deee                      Z G d dee          Zd
S )zContains the DOMWidget class    )BoolUnicode   )Widgetwidget_serializationregister)InstanceDict)Style)
CoreWidget)	DOMWidget)deprecationNc                       e Zd ZdZ ed                              d          Z ed                              d          ZdS )DescriptionStylezDescription style widget.DescriptionStyleModelTsyncz4Width of the description to the side of the control.helpN)__name__
__module____qualname____doc__r   tag_model_namedescription_width     e/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/ipywidgets/widgets/widget_description.pyr   r      s]        ##'12266D6AAK%[\\\``fj`kkr   r   c                   X    e Zd ZdZ ed                              d          Z edd                              d          Z edd	                              d          Z	  e
ed
          j        dddieZ fdZ fdZed             Zej        d             Z xZS )DescriptionWidgetz0Widget that has a description label to the side.DescriptionModelTr    zDescription of the control.r   FzAccept HTML in the description.zStyling customizationsr   c                     d|v r.t          d           |                    d|d                    |d=  t                      j        |i | d S )Ndescription_tooltipzCthe description_tooltip argument is deprecated, use tooltip insteadtooltip)r   
setdefaultsuper__init__)selfargskwargs	__class__s      r   r(   zDescriptionWidget.__init__   sd     F**]^^^i0E)FGGG,-$)&)))))r   c              #      K   t                                                      D ]=}|dk    r1t          | |          }t          |          d|j        j        z  k    r9|V  >d S )Nstylez%s())r'   
_repr_keysgetattrreprr,   r   )r)   keyvaluer,   s      r   r/   zDescriptionWidget._repr_keys%   sq      77%%'' 	 	Cg~~c**;;&5?+C"CCCIIII	 	r   c                 .    t          d           | j        S )zjThe tooltip information.
        .. deprecated :: 8.0.0
           Use tooltip attribute instead.
        8.description_tooltip is deprecated, use .tooltip insteadr   r%   )r)   s    r   r$   z%DescriptionWidget.description_tooltip.   s     	NOOO|r   c                 2    t          d           || _        d S )Nr5   r6   )r)   r%   s     r   r$   z%DescriptionWidget.description_tooltip7   s    NOOOr   r   )r   r   r   r   r   r   r   descriptionr   description_allow_htmlr	   r   r   r.   r(   r/   propertyr$   setter__classcell__)r,   s   @r   r    r       s0       ::',--11t1<<K'"#@AAAEE4EPPK!T%.OPPPTTZ^T__MLL)0HIIIMppSWp[oppE* * * * *       X        r   r    )r   	traitletsr   r   widgetr   r   r   trait_typesr	   widget_styler
   widget_corer   	domwidgetr   utilsr   warningsr   r    r   r   r   <module>rE      s   # " # # # # # # # # : : : : : : : : : : % % % % % %       # # # # # #                   	l l l l luj& l l 
l# # # # #	: # # # # #r   