App.confirm

App.confirm(message)[source]

Confirm the execution of an action.

Parameters
messagestr

Message to inform the user.

Returns
bool

True if the user confirms. False otherwise.

Examples

if viewer.confirm("Should i continue?"):
    continue