def confirm(self, message, title=None, cancel=False, default=NO): """ Convenience method to show a confirmation dialog. Parameters ---------- 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. """ from confirmation_dialog import confirm return confirm(self.control, message, title, cancel, default)
def confirm(self, message, title=None, cancel=False, default=NO): """ Convenience method to show a confirmation dialog. """ from confirmation_dialog import confirm return confirm(self.control, message, title, cancel, default)