Ejemplo n.º 1
0
    def set_icon(self, pixmap):
        """Set icon for this widget.

        Args:
            pixmap (str|QPixmap): pixmap to apply
        """
        _icon = QtGui.QIcon(get_pixmap(pixmap))
        self.setIcon(_icon)
Ejemplo n.º 2
0
    def set_icon(self, image):
        """Set icon for this item.

        Args:
            image (str|QPixmap): icon to apply
        """
        _icon = QtGui.QIcon(get_pixmap(image))
        self.setIcon(_icon)