o
    ^i                     @   s   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 deeeZG dd deeZd
S )zContains the DOMWidget class    )BoolUnicode   )Widgetwidget_serializationregister)InstanceDict)Style)
CoreWidget)	DOMWidget)deprecationNc                   @   s2   e Zd ZdZedjddZeddj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 r   r   `/home/ubuntu/hpml_nyu/venv/lib/python3.10/site-packages/ipywidgets/widgets/widget_description.pyr      s    r   c                       s   e Zd ZdZedjddZedddjddZedd	djddZ	e
ed
djdddieZ fddZ fddZedd Zejdd Z  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                    s<   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__r   r   r#      s
   zDescriptionWidget.__init__c                 #   sD    t   D ]}|dkrt| |}t|d|jj krq|V  qd S )Nstylez%s())r"   
_repr_keysgetattrreprr(   r   )r$   keyvaluer'   r   r   r*   %   s   
zDescriptionWidget._repr_keysc                 C   s   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$   r   r   r   r   .   s   z%DescriptionWidget.description_tooltipc                 C   s   t d || _d S )Nr/   r0   )r$   r    r   r   r   r   7   s   
r   )r   r   r   r   r   r   r   descriptionr   description_allow_htmlr   r   r   r)   r#   r*   propertyr   setter__classcell__r   r   r'   r   r      s    	
r   )r   	traitletsr   r   widgetr   r   r   trait_typesr   widget_styler	   widget_corer
   	domwidgetr   utilsr   warningsr   r   r   r   r   r   <module>   s   