On 20/08/2014 7:44 AM, "Marcus Ottosson" <[email protected]> wrote:
>
> You could try locating their QWidget instance and monkey-patch the method
responsible for updating it. :)
>
> # E.g.
> def setText(self, text):
>     super(...)
>     print "Gotcha!
>
> some_widget_you_found.setText = setText
>
>

I think that would only work for virtual methods of the widget, and also
probably not have any effect on the underlying Qt in Maya since it wouldn't
know about the virtual method of your local python object.

It does work when you own the widgets in your app.
​
>
>
> On 19 August 2014 21:21, Justin Israel <[email protected]> wrote:
>>
>> You can try looking them up through Qt (MQtUtil) and using their signals
or events.
>>
>> On 20/08/2014 7:11 AM, "illunara" <[email protected]> wrote:
>>>
>>> Thank for reply
>>> Yes, ofc, its possible. But I just want to try different way :D
>>>
>>> --
>>> 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/9338dbc4-bac7-4aca-888a-b2203aa40518%40googlegroups.com
.
>>> 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/CAPGFgA2Xf%2B3bZBAYa-VNNDbGGLcjgOwQK5LV78kkGGOctru-xA%40mail.gmail.com
.
>>
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Marcus Ottosson
> [email protected]
>
> --
> 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/CAFRtmODb0%2Bo0%3DrPFjta2RmeUZ30HB%3DDakSy6_yskJy8T8B5Nkw%40mail.gmail.com
.
>
> 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/CAPGFgA3vHNGTk36N5My3BA%3DDF7KOP0m75Z3aUqZ%3DX%3DqYZW-W_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to