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)[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.