tomwer.gui.icons.getQIcon#
- tomwer.gui.icons.getQIcon(name)#
Create a QIcon from its 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()
.- Parameters:
name – Name of the icon, in one of the defined icons in this module.
- Returns:
Corresponding QIcon
- Raises:
ValueError when name is not known