Skip to content

get_style

Return the global Style singleton instance.

Convenience helper function that ensures a single Style instance is used across the application.

Parameters:

Name Type Description Default
master Master

Optional master for initial construction; ignored thereafter.

None

Returns:

Type Description
Style

Global Style instance.

Examples:

>>> style = get_style()
>>> style.theme_use("ocean-dark")