🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for show_alert

Show a message in a dialog box to the user. This is part of the reference section.

Purpose

Show a message in a dialog box to the user without any controls except to dismiss.

Snippet

Say hello in a dialog box.
sketch.get_dialog_layer().show_alert('Hello!')

Parameters

  • message: The message to display in the box. May be interpreted as HTML on some platforms.

Examples

Availability

Available for Sketch2DWeb and Sketch2DApp. For app, will try to interpret as HTML.

See also