def onCancel(self): """Close the program after confirming We treat the behavior of the "cancel" button slightly differently than the general window close X button only because this is 'part of' the form. """ if modals.confirmExit(): self.onClose()
def onCancel(self): """Close the program after confirming""" if modals.confirmExit(): self.onClose()
def handleCancel(self, *args, **kwargs): if modals.confirmExit(): self.handleClose()