3
<Ad]ÿ  ã               @   sF   d Z ddlmZ ddd„Zddd	„Zddd„ZddlmZ edƒZdS )z9 The implementation of a dialog that displays a message. é    )Úabsolute_importÚInformationÚ c             C   s    t | ||d||d�}|jƒ  dS )a   Convenience method to show an information message dialog.

    Parameters
    ----------
    parent : toolkit control or None
        The toolkit control that should be the parent of the dialog.
    message : str
        The text of the message to display.
    title : str
        The text of the dialog title.
    detail : str
        Further details about the message (displayed when the user clicks
        "Show details").
    informative : str
        Explanatory text to display along with the message.

    Úinformation)ÚparentÚmessageÚtitleÚseverityÚdetailÚinformativeN)ÚMessageDialogÚopen)r   r   r   r
   r   Údialog© r   úo/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/pyface-6.1.2-py3.6.egg/pyface/message_dialog.pyr      s    r   ÚWarningc             C   s    t | ||d||d�}|jƒ  dS )a    Convenience function to show a warning message dialog.

    Parameters
    ----------
    parent : toolkit control or None
        The toolkit control that should be the parent of the dialog.
    message : str
        The text of the message to display.
    title : str
        The text of the dialog title.
    detail : str
        Further details about the message (displayed when the user clicks
        "Show details").
    informative : str
        Explanatory text to display along with the message.

    Úwarning)r   r   r   r	   r
   r   N)r   r   )r   r   r   r
   r   r   r   r   r   r   .   s    r   ÚErrorc             C   s    t | ||d||d�}|jƒ  dS )aÿ   Convenience function to show an error message dialog.

    Parameters
    ----------
    parent : toolkit control or None
        The toolkit control that should be the parent of the dialog.
    message : str
        The text of the message to display.
    title : str
        The text of the dialog title.
    detail : str
        Further details about the message (displayed when the user clicks
        "Show details").
    informative : str
        Explanatory text to display along with the message.

    Úerror)r   r   r   r	   r
   r   N)r   r   )r   r   r   r
   r   r   r   r   r   r   G   s    
r   é   )Útoolkit_objectzmessage_dialog:MessageDialogN)r   r   r   )r   r   r   )r   r   r   )	Ú__doc__Ú
__future__r   r   r   r   Ztoolkitr   r   r   r   r   r   Ú<module>   s    


