aside.resources module¶
Manages the package resource files.
-
root: importlib_resources.abc.Traversable¶ The root traversable resource location.
See
importlib_resourcesandimportlib.resourcesfor more information.
-
get_svg(name: str) → bytes[source]¶ Find and load an svg resource specified by
name.- Parameters
name – The name of the svg resource without the file extension.
- Returns
The contents of the resource, suitable to be loaded with
loadFromData.
Todo
Take the current
LOCALEinto account:look for
root/locale/namefirstthen fallback to
root/name
Todo
Generate/interpolate SVGs on the fly, possibly with system caching.