def get_std_icon(name, size=None):
 if (not name.startswith('SP_')):
  name = ('SP_' + name)
 icon = QWidget().style().standardIcon(getattr(QStyle, name))
 if (size is None):
  return icon
 else:
  return QIcon(icon.pixmap(size, size))

def get_std_icon ( name , size = None ) : if ( not name . startswith ( 'SP_' ) ) : name = ( 'SP_' + name ) icon = QWidget ( ) . style ( ) . standardIcon ( getattr ( QStyle , name ) ) if ( size is None ) : return icon else : return QIcon ( icon . pixmap ( size , size ) )
get standard platform icon call show_std_icons() for details .