Hi, Im trying to make a list of lights, and Im using attrColorSliderGrp, to 
control the Color attribute of the light, using Nathan Horn method to use 
Maya Widget into Pyqt (http://nathanhorne.com/?p=381), the aproach works 
fine when adding it to an QHBoxlayout, or any other container, but when 
added to a QTreeWidgetItem with QtGui.QTreeWidget.setItemWidget(), 
everything works except the color show in the button is always white, but 
when clicked it shows the real color, and you can change it.

(In the Image here, the same objects wich where added
to qtreewidgetitem appears white, and on the bottom part, they where added 
to an horizontal layout and they show OK)
http://s12.postimg.org/kal4ffh4t/Screenshot_1.png

I guess something is overriding it, any idea what?? or any other aproach I 
can use to achieve this?
The main reason why I' m not using a regular button, to call a regular 
colorEditor(or even pyqt color picker
), an apply changes to the color attribute of the light, is because I want 
IPR to be refreshing live when browsing trough the color palette, before 
you press OK, can this be achieved trough the api?? or othe suggestions??

Thanks.

Macbeth Rene

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/4a6387c9-b96a-44e4-8890-c651371b69a6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to