API Reference
nuke.
ask
Show a Yes/No dialog.
prompt – Present the user with this message.
True if Yes, False otherwise.