
    Xh                         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y
)zContains the DOMWidget class    )BoolUnicode   )Widgetwidget_serializationregister)InstanceDict)Style)
CoreWidget)	DOMWidget)deprecationNc                   r    e Zd ZdZ ed      j                  d      Z ed      j                  d      Zy)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     Y/var/www/html/myenv/lib/python3.12/site-packages/ipywidgets/widgets/widget_description.pyr   r      s9    #1266D6AK%[\``fj`kr   r   c                   0    e Zd ZdZ ed      j                  d      Z edd      j                  d      Z edd	      j                  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                 r    d|v r#t        d       |j                  d|d          |d= t        |   |i | y )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__   sE     F*]^i0E)FG,-$)&)r   c              #      K   t         |          D ]=  }|dk(  r2t        | |      }t        |      d|j                  j
                  z  k(  r:| ? y w)Nstylez%s())r'   
_repr_keysgetattrreprr,   r   )r)   keyvaluer,   s      r   r/   zDescriptionWidget._repr_keys%   sT     7%' 	Cg~c*;&5??+C+C"CCI	s   AAc                 0    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||r   c                 (    t        d       || _        y )Nr5   r6   )r)   r%   s     r   r$   z%DescriptionWidget.description_tooltip7   s    N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       s    :,-11t1<K"#@AEE4EPK!%.OPTTZ^T_ML)0HIMMpSWp[opE*     r   r    )r   	traitletsr   r   widgetr   r   r   trait_typesr	   widget_styler
   widget_corer   	domwidgetr   utilsr   warningsr   r    r   r   r   <module>rE      sS    # # : : %  #    	luj& l 
l#	: #r   