StyleSchemeManager
Superclasses: Object
Provides access to StyleScheme
’s.
Constructors
- class StyleSchemeManager
- classmethod new() StyleSchemeManager
Creates a new style manager.
If you do not need more than one style manager then use
get_default
instead.
Methods
- class StyleSchemeManager
- append_search_path(path: str) None
Appends
path
to the list of directories where themanager
looks for style scheme files.See
set_search_path
for 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
manager
is accessed.
- get_default() StyleSchemeManager
Returns the default
StyleSchemeManager
instance.
- 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_path
for details.