StyleSchemeManager#
Superclasses: Object
Provides access to StyleSchemes.
Constructors#
- class StyleSchemeManager
- classmethod new() StyleSchemeManager#
Creates a new style manager.
If you do not need more than one style manager then use
get_defaultinstead.
Methods#
- class StyleSchemeManager
- append_search_path(path: str) None#
Appends
pathto the list of directories where themanagerlooks for style scheme files.See
set_search_pathfor details.- Parameters:
path – a directory or a filename.
- force_rescan() None#
Mark any currently cached information about the available style schems as invalid.
All the available style schemes will be reloaded next time the
manageris accessed.
- classmethod get_default() StyleSchemeManager#
Returns the default
StyleSchemeManagerinstance.
- get_scheme(scheme_id: str) StyleScheme | None#
Looks up style scheme by id.
- Parameters:
scheme_id – style scheme id to find.
- get_search_path() list[str]#
Returns the current search path for the
manager.See
set_search_pathfor details.