python.shotgun_globals.icon module¶
-
get_entity_type_icon
(entity_type)[source]¶ Retrieve the icon for the specified entity type if available.
Parameters: entity_type – The entity type to retrieve the icon for Returns: A QIcon if an icon was found for the specified entity type, otherwise None.
-
get_entity_type_icon_url
(entity_type)[source]¶ Retrieve the icon resource path for the specified entity type if available.
This is useful if you want to include an icon in a
QLabel
using an<img>
html tag.Parameters: entity_type – The entity type to retrieve the icon for Returns: A string url with a qt resource path