3
7ßL]  ã               @   sD   d Z ddlmZ ddlmZ ddefdd„Zdd	lmZ ed
ƒZdS )zH The implementation of a dialog that prompts the user for confirmation. é    )Úabsolute_importé   )ÚNONFc             C   s&   |dkrd}t | ||||d�}|jƒ 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   ú>/tmp/pip-install-5sebvq2j/pyface/pyface/confirmation_dialog.pyÚconfirm   s    r   )Útoolkit_objectz&confirmation_dialog:ConfirmationDialog)	Ú__doc__Ú
__future__r   Zconstantr   r   Ztoolkitr   r
   r   r   r   r   Ú<module>   s
   