a
    §ˆc-	  ã                   @   sl   d Z ddlZddlmZmZmZ ddlmZmZ ddl	m
Z
 ejejejdœZeeƒG dd	„ d	ee
ƒƒZdS )
z$ Enthought pyface package component
é    N)ÚEnumÚprovidesÚStr)ÚIMessageDialogÚMMessageDialogé   )ÚDialog)ÚinformationÚwarningÚerrorc                   @   sJ   e Zd ZdZeƒ Zeƒ Zeƒ ZedddƒZ	edddƒZ
dd	„ Zd
d„ ZdS )ÚMessageDialogz~ The toolkit specific implementation of a MessageDialog.  See the
    IMessageDialog interface for the API documentation.
    r	   r
   r   ÚautoÚplainZrichc                 C   s   d S )N© )ÚselfÚparentr   r   ú^/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/wx/message_dialog.pyÚ_create_contents9   s    zMessageDialog._create_contentsc                 C   st   | j r| jd | j  }n| j}t| j tjB tjB }| jrD|tjO }t 	||| j
|| j¡}| jdkrp| | j¡ |S )Nz

)éÿÿÿÿr   )ÚinformativeÚmessageÚ_SEVERITY_TO_ICON_MAPÚseverityÚwxÚOKZSTAY_ON_TOPZ
resizeableZRESIZE_BORDERr   ÚtitleÚpositionÚsizeZSetSize)r   r   r   ÚstyleZdlgr   r   r   Ú_create_controlA   s    
ÿ
zMessageDialog._create_controlN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Zdetailr   r   Ztext_formatr   r   r   r   r   r   r   "   s   r   )r#   r   Z
traits.apir   r   r   Zpyface.i_message_dialogr   r   Údialogr   ZICON_INFORMATIONZICON_WARNINGZ
ICON_ERRORr   r   r   r   r   r   Ú<module>   s   ý