tomwer.gui.icons.getQPixmap#
- tomwer.gui.icons.getQPixmap(name)#
Create a QPixmap 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 QPixmap
- Raises:
ValueError when name is not known