On Tue, Oct 4, 2016 at 1:52 PM yann19 <[email protected]> wrote:

> Okay, currentIndexChanged works, I have placed it wrongly instead of it
> being under the connect_signals functions, I should have placed it under
> the populate_data function..
>

I was going to say something about that, until I just saw this reply.
Originally you were creating individual combobox instances, and each one
should have its signal hooked up to handle the color change for the
associate model. And then in your later example you tried to store a single
combobox reference as "self.combobox" which I know would have caused you
problems. So if you are back to connecting each discreet combo, then it
should work.

As for the mode/view/controller thing, I am not sure what that would gain
you in terms of this whole color problem. Either way, you have to update
the names and colors in some place, whether it be in a model, or in the
integrated high-level widget.

 And for the problem of your model/view not working as you would expect, I
am not sure what is wrong from the code example you gave. You seem to be
setting the model on the view, and adding model items. What approach are
you using to edit the names? If you edit them interactively in your view,
then you should be seeing them in your model items. And if you are setting
them via modelItem.setText(), then you should be seeing them change in the
view.

Justin

-- 
> 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/a657289c-96a2-4b9c-80bd-605028c94af7%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/a657289c-96a2-4b9c-80bd-605028c94af7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA19W6ZR56UCkX_H%2BnHQsauoSgy5bx%2Bh%3DAEooD-5oGBCKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to