3
7ßL]ê	  ã               @   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ÚUnicode)ÚIMessageDialogÚMMessageDialogé   )ÚDialog)ÚinformationÚwarningÚerrorc               @   s8   e Zd ZdZeZeZe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   c             C   s   d S )N© )ÚselfÚparentr   r   ú?/tmp/pip-install-5sebvq2j/pyface/pyface/ui/wx/message_dialog.pyÚ_create_contents<   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ƒ}| jdkrp|j| jƒ |S )Nz

r   éÿÿÿÿr   )r   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_controlD   s    

zMessageDialog._create_controlN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Zdetailr   r   r   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   
