B
    p[                 @   s   d Z ddl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 eG d	d
 d
e
eeZG dd deeZdS )zContains the DOMWidget class    )Unicode   )Widgetwidget_serializationregister)InstanceDict)Style)
CoreWidget)	DOMWidgetc               @   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.ZDescriptionStyleModelT)syncz4Width of the description to the side of the control.)helpN)__name__
__module____qualname____doc__r   tag_model_nameZdescription_width r   r   Dlib/python3.7/site-packages/ipywidgets/widgets/widget_description.pyr      s   r   c                   sv   e Zd ZdZedjddZedddjddZeddd	d
jddZe	e
ddjf ddieZ fddZ  ZS )DescriptionWidgetz0Widget that has a description label to the side.ZDescriptionModelT)r    zDescription of the control.)r   Nz6Tooltip for the description (defaults to description).)Z
allow_noner   zStyling customizationsr   c             #   sJ   xDt t|  D ]2}|dkr<t| |}t|d|jj kr<q|V  qW d S )Nstylez%s())superr   
_repr_keysgetattrrepr	__class__r   )selfkeyvalue)r   r   r   r      s    
zDescriptionWidget._repr_keys)r   r   r   r   r   r   r   ZdescriptionZdescription_tooltipr   r   r   r   r   __classcell__r   r   )r   r   r      s   r   N)r   Z	traitletsr   Zwidgetr   r   r   Ztrait_typesr   Zwidget_styler   Zwidget_corer	   Z	domwidgetr
   r   r   r   r   r   r   <module>   s   