API Reference
nuke.
askWithCancel
Show a Yes/No/Cancel dialog.
prompt – Present the user with this question.
True if Yes, False if No, an exception is thrown if Cancel.