set_stackprinter_style()#

Set the formatting style for py5’s stack traces.

Examples#

1import py5
2py5.set_stackprinter_style('lightbg')

Description#

Set the formatting style for py5’s stack traces. Py5 uses the Python library stackprinter to show exception stack traces. The stackprinter library supports various color styles. By default py5 will use 'plaintext', which does not use color. Alternative styles using color are 'darkbg', 'darkbg2', 'darkbg3', 'lightbg', 'lightbg2', and 'lightbg3'.

Syntax#

set_stackprinter_style(style: str) -> None

Parameters#

  • style: str - name of stackprinter style

Updated on September 11, 2021 16:51:34pm UTC