Thanks Fredrik, I’ve also felt the need for something like this. Especially
for debugging and CSS.

But this could of course sometimes become problematic if a class can have
different parents.

Could you elaborate on this?
​


On 3 June 2014 16:04, Fredrik Averpil <[email protected]> wrote:

> That's a great idea and I think it fills a need at least for me.
>
> In all classes I set the parent into something that can be accessed from a
> global object, which I know is always available from all classes. So in the
> end I can reach UI elements in a similar manner.
> But this could of course sometimes become problematic if a class can have
> different parents.
>
> // Fredrik
>
>
>
>
>
>
> On Tue, Jun 3, 2014 at 4:18 PM, Marcus Ottosson <[email protected]>
> wrote:
>
>> Hi all,
>>
>> I’ve mocked up a method for serialising paths of widgets within a
>> hierarchy of widgets into a Unix-style path, that can then be de-serialised
>> back into its original widget.
>>
>> Motivation is to be able to reference widgets within deeply nested
>> hierarchies, both for better understanding and debugging but also for
>> undo/redo and messaging.
>>
>> I’m calling it *qtpath* for the lack of a better name. Before I make a
>> big deal out of it, I wanted to reach out to you guys in case you’ve
>> encountered anything similar, have ever found the need or can think of
>> alternative methods of achieving the same goal.
>>
>> https://github.com/abstractfactory/labs/tree/master/python/pyqt/qtpath
>>
>> >> qtpath.abspath(window, button)'/Win.Demo/Body.QWidget/Button.QPushButton'
>>
>> Let me know what you think.
>>
>> Best,
>> Marcus
>> ​
>> --
>> *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/CAFRtmOC8yntWFgKpaEXDs8f%2BCvSLxvQXtJ1ZLLJABoZs9N8swQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC8yntWFgKpaEXDs8f%2BCvSLxvQXtJ1ZLLJABoZs9N8swQ%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/CAD%3DwhWP4Pky3YFwS8O%2BgCEy_8GZH1mxat2M%3D%2BPWyrBEX06f-fw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWP4Pky3YFwS8O%2BgCEy_8GZH1mxat2M%3D%2BPWyrBEX06f-fw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAFRtmOAtZSHJEid%3DgQpmGXJFhhKJf8J%3DBHvwOY%3DzEZO6Cnw2Lg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to