Thanks Justin that helps.

exactly what I was looking for


On Wed, Sep 16, 2015 at 3:05 PM, Justin Israel <[email protected]>
wrote:

> There are a number of ways to do this, actually. The lsUI thing from a
> MEL/Python (non-qt) standpoint is kind of necessary because otherwise you
> have no real hook into any of the UI system outside of what they expose to
> you. But once you have access to any of the Qt objects or the Qt framework
> itself, you can do a lot of different types of introspection directly.
>
> For instance:
>
> from PySide import QtGui
> # Print out the title of all non-hidden top-level windows
> tops = QtGui.qApp.topLevelWidgets()for top in tops:
>     if top.isWindow() and not top.isHidden():
>         print top.windowTitle()
>
> ​
>
> You could also get the maya QMainWindow and inspect its children, if you
> are only concerned with widgets actually parented to the MainWindow.
>
>
> On Thu, Sep 17, 2015 at 9:57 AM Todd Widup <[email protected]> wrote:
>
>> I saw findWindow, but it only works, from what I can see, if you know a
>> windows objectName  I was looking for something, where say I have 5 PySide
>> windows open and don't know there names, it would return their names or
>> something like lsUI(windows=True)
>>
>>
>> On Wed, Sep 16, 2015 at 2:54 PM, Justin Israel <[email protected]>
>> wrote:
>>
>>> MQtUtil has the findWindow() function. Once you have an actual Qt
>>> object, you have access to all the QObject methods like findChild(),
>>> findChildren(). What exact query would you like to be able to perform?
>>>
>>>
>>> On Thu, Sep 17, 2015 at 9:36 AM Todd Widup <[email protected]> wrote:
>>>
>>>> looking thru MQtUtil and the python, pymel commands, I am not finding
>>>> anything like lsUI that will actually work with Qt or PySide windows.
>>>>
>>>> is there anything?
>>>>
>>>> --
>>>> Todd Widup
>>>> Creature TD / Technical Artist
>>>> [email protected]
>>>> [email protected]
>>>> www.toddwidup.com
>>>>
>>>> --
>>>> 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/CABBPk362z-%2Bqk6X9Gbk9DV7N6f-1Hqea2H%3DgtsbXZDotdibBdw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk362z-%2Bqk6X9Gbk9DV7N6f-1Hqea2H%3DgtsbXZDotdibBdw%40mail.gmail.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/CAPGFgA19Fin8bbaGeGvxiTtw1FeLBOT_Kqp-sYpKjF6JqNTXUg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA19Fin8bbaGeGvxiTtw1FeLBOT_Kqp-sYpKjF6JqNTXUg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> Todd Widup
>> Creature TD / Technical Artist
>> [email protected]
>> [email protected]
>> www.toddwidup.com
>>
>> --
>> 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/CABBPk34zJZ9Zx%3DYqLPPfiHWBMEH%2BGM1V9X002vm3M739Oa%2BmpA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk34zJZ9Zx%3DYqLPPfiHWBMEH%2BGM1V9X002vm3M739Oa%2BmpA%40mail.gmail.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/CAPGFgA0ZCL0dcwLuuQan2tJkxe6_ggDTu%2BeDNAx36w4Ym2FhEQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0ZCL0dcwLuuQan2tJkxe6_ggDTu%2BeDNAx36w4Ym2FhEQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Todd Widup
Creature TD / Technical Artist
[email protected]
[email protected]
www.toddwidup.com

-- 
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/CABBPk34jCzCk8a3hgnE8bKUc_srzn8nS%2B0OArknzGfC2VAY%3DOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to