tomwer.gui.icons.getAnimatedIcon#

tomwer.gui.icons.getAnimatedIcon(name)#

Create an AbstractAnimatedIcon from a resource name.

The resource name can be prefixed by the name of a resource directory. For example “silx:foo.png” identify the resource “foo.png” from the resource directory “silx”.

If no prefix are specified, the file with be returned from the silx resource directory with a specific path “gui/icons”.

See also silx.resources.register_resource_directory().

Try to load a mng or a gif file, then try to load a multi-image animated icon.

In Qt5 mng or gif are not used, because the transparency is not very well managed.

Parameters:

name (str) – Name of the icon, in one of the defined icons in this module.

Returns:

Corresponding AbstractAnimatedIcon

Raises:

ValueError when name is not known