def assign(self, pm):
        """Reassign pixmap or xpm string array to wrapper"""
        if isinstance(pm, QPixmap):
            self._pm = pm
        else:  # assume xpm string list to be decoded on-demand
            self._xpmstr = pm
            self._pm = None
        self._icon = None
Reassign pixmap or xpm string array to wrapper