def icon(self): """ Get the icon for the container. This proxies the call to the underlying dock item. """ item = self.dockItem() if item is not None: return item.icon() return QIcon()
def __init__(self, parent=None): """ Initialize a QIconWidget. Parameters ---------- parent : QWidget, optional The parent of the icon widget. """ super(QIconWidget, self).__init__(parent) self._icon_size = QSize() self._icon = QIcon()
def get_qt_icon(name): path = get_image_path(name) return QIcon(path)