a
    ¦ˆcp  ã                   @   s8   d Z ddlmZ ddlmZ edƒZddefdd„ZdS )	zH The implementation of a dialog that prompts the user for confirmation. é   )ÚNO)Útoolkit_objectz&confirmation_dialog:ConfirmationDialogNFc                 C   s&   |du rd}t | ||||d�}| ¡ S )a½   Convenience method to show a confirmation dialog.

    Parameters
    ----------
    parent : toolkit widget or None
        The parent control for the dialog.
    message : str
        The text of the message to display.
    title : str
        The text of the dialog title.
    cancel : bool
        ``True`` if the dialog should contain a Cancel button.
    default : NO, YES or CANCEL
        Which button should be the default button.
    NZConfirmation)ÚparentÚmessageÚcancelÚdefaultÚtitle)ÚConfirmationDialogÚopen)r   r   r   r   r   Údialog© r   ú]/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/confirmation_dialog.pyÚconfirm   s    ûr   )Ú__doc__Zconstantr   Ztoolkitr   r	   r   r   r   r   r   Ú<module>   s   