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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to