我目前正在尝试让我的 iconTextButton 在单击后将其给定的图标更改为不同的图像。这有可能吗。
def defaultButtonPush(*args):
print 'Button 1 was pushed.'
cmds.window( width=150 )
cmds.columnLayout( adjustableColumn=True )
cmds.iconTextButton(style='iconAndTextHorizontal', image1= 'cube.png',image2= 'sphere.png', label='Button 1', command=defaultButtonPush )
cmds.showWindow()
非常感谢