🧪 Version 0.2.2 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_and_quit

Show the sketch and quit immediatley afterwards. This is part of the reference section.

Purpose

Show the sketch to the user and quit immediately afterwards, a routine potentially useful for testing.

Snippet

Show a sketch briefly
sketch.show_and_quit()

Parameters

  • ax: The container into which the sketch should be shown. Currently only supported for Sketch2DStatic. Optional and ignored on most renderers.

Availability

Available for all platforms. For static renderer, this does nothing. For web, will leave the sketch visible but will stop the event loop. For app, will close the window.

See also