Skip to main content

Placeholder

A control that draws a box that represents where other widgets will one day be added.

Useful during development to indicate that the interface is not yet complete.

Examples

Live example

Basic example

python/controls/layout/placeholder/placeholder-example.py
loading...

Properties

content

An optional Control to display inside the placeholder.

color

The color of the placeholder box.

fallback_height

The height to use when the placeholder is in a situation with an unbounded height.

Value is of float and defaults to 400.0.

fallback_width

The width to use when the placeholder is in a situation with an unbounded width.

Value is of float and defaults to 400.0.

stroke_width

The width of the lines in the placeholder box.

Value is of float and defaults to 2.0.