a
    ¦ˆcê  ã                   @   s:   d Z ddlmZ edƒZddd„Zdd
d„Zddd„ZdS )z9 The implementation of a dialog that displays a message. é   )Útoolkit_objectzmessage_dialog:MessageDialogÚInformationÚ Úautoc              	   C   s"   t | ||d|||d�}| ¡  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.
    text_format : str
        Specifies what text format to use in the resulting message dialog.
        One of "auto", "plain", or "rich". Only supported on the qt backend.

    Úinformation©ÚparentÚmessageÚtitleZseverityÚdetailÚinformativeÚtext_formatN©ÚMessageDialogÚopen©r   r	   r
   r   r   r   Údialog© r   úX/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/message_dialog.pyr      s    ù	r   ÚWarningc              	   C   s"   t | ||d|||d�}| ¡  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.
    text_format : str
        Specifies what text format to use in the resulting message dialog.
        One of "auto", "plain", or "rich". Only supported on the qt backend.

    Úwarningr   Nr   r   r   r   r   r   >   s    ù	r   ÚErrorc              	   C   s"   t | ||d|||d�}| ¡  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.
    text_format : str
        Specifies what text format to use in the resulting message dialog.
        One of "auto", "plain", or "rich". Only supported on the qt backend.

    Úerrorr   Nr   r   r   r   r   r   f   s    ù	r   N)r   r   r   r   )r   r   r   r   )r   r   r   r   )Ú__doc__Ztoolkitr   r   r   r   r   r   r   r   r   Ú<module>   s"       ú
+    ú
+    ú