I found the solution with some googling :
basically some of maya icons are compiled in ressources files,
so you won't be able to find the source files directly,
but you can extract them / use them with those functions
Hope it helps,
S
from PySide import QtGui, QtCore
test = QtGui.QWidget()
layout = QtGui.QHBoxLayout()
test.setLayout(layout)
test.show()
icon = QtGui.QIcon(":/cube.png")
button = QtGui.QToolButton()
button.setFixedSize(24,24)
button.setIcon(icon)
button.setIconSize(QtCore.QSize(20,20))
layout.addWidget(button)
How to know which bitmaps are available in Maya? Launch the Resource Browser
with this code
import maya.app.general.resourceBrowser as resourceBrowser
resBrowser = resourceBrowser.resourceBrowser()
path = resBrowser.run()