pyface.confirmation_dialog module¶
The implementation of a dialog that prompts the user for confirmation.
- pyface.confirmation_dialog.confirm(parent, message, title=None, cancel=False, default=40, no_label='', yes_label='', informative='', detail='')[source]¶
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.
no_label (str) – Text to display in the NO button.
yes_label (str) – Text to display in the YES button.
informative (str) – Explanatory text to display along with the message.
detail (str) – Further details about the message (displayed when the user clicks “Show details”).