Are the maya icons resizable when using them?
In the docs for iconTextButton, the flag image (i) says:
If you are not providing images with different sizes then you may use this flag for the control’s image. If the “iconOnly” style is set, the icon will be scaled to the size of the control.
Yet I cannot get an icon to scale. I can set the height of the icon on creation, but width appears to have no effect. Example:
import maya.cmds as cmds
window = cmds.window()
cmds.columnLayout(adj=True)
icon = cmds.iconTextButton(style='iconOnly', w=16, h=500, image='paintBlendshape.png' )
cmds.showWindow( window )
The margins around the icon expand to fill the height, but the icon itself remains the same size, and the width doesn’t seem to go below a certain value. I have tried this using a form layout and the icon once again does not scale at all.