def get_icons(zfp, name_or_list_of_names):
 from PyQt5.Qt import QIcon, QPixmap
 names = name_or_list_of_names
 ans = get_resources(zfp, names)
 if isinstance(names, basestring):
  names = [names]
 if (ans is None):
  ans = {}
 if isinstance(ans, basestring):
  ans = dict([(names[0], ans)])
 ians = {}
 for name in names:
  p = QPixmap()
  raw = ans.get(name, None)
  if raw:
   p.loadFromData(raw)
  ians[name] = QIcon(p)
 if (len(names) == 1):
  ians = ians.pop(names[0])
 return ians

def get_icons ( zfp , name_or_list_of_names ) : from PyQt5 . Qt import QIcon , QPixmap names = name_or_list_of_names ans = get_resources ( zfp , names ) if isinstance ( names , basestring ) : names = [ names ] if ( ans is None ) : ans = { } if isinstance ( ans , basestring ) : ans = dict ( [ ( names [ 0 ] , ans ) ] ) ians = { } for name in names : p = QPixmap ( ) raw = ans . get ( name , None ) if raw : p . loadFromData ( raw ) ians [ name ] = QIcon ( p ) if ( len ( names ) == 1 ) : ians = ians . pop ( names [ 0 ] ) return ians
load icons from the plugin zip file .