ThemeManager
Simple manager class for plugging into themes in a semi-background agnostic way
extra_themes: dict
__init__(self, *theme_names, backend=None, graphics_styles=None, **extra_styles):
@classmethod
from_spec(cls, theme, backend=None):
@classmethod
canonicalize_theme_props(cls, props):
__enter__(self):
__exit__(self, exc_type, exc_val, exc_tb):
@property
theme(self):
@classmethod
add_theme(self, theme_name, *base_theme, **extra_styles):
Adds a theme to the extra themes dict. At some future date we’ll want to make it so that this does a level of validation, too.
theme_name:Anybase_theme:Anyextra_styles:Any:returns:_
@classmethod
resolve_theme(self, theme_name, *base_themes, **extra_styles):
Resolves a theme so that it only uses strings for built-in styles
:returns:_
validate_theme(self, theme_names, theme_styless):
@property
backend_themes(self):
@property
theme_names(self):