runtimepy.ui package#

Submodules#

runtimepy.ui.controls module#

A module implementing UI controls instances for configuring UI widgets.

runtimepy.ui.controls.make_slider(min_val: int | float, max_val: int | float, step: int | float, default: int | float | None = None) dict[str, int | float | bool | dict[str, int | float | bool]][source]#

Create dictionary data for a slider element.

runtimepy.ui.controls.normalize_controls(data: dict[str, int | float | bool | dict[str, int | float | bool]] | str) dict[str, int | float | bool | dict[str, int | float | bool]][source]#

Resolve a canonical control name if necessary.

Module contents#