Thanks, that’s a good suggestion. Though I wonder whether the
MQtUtil.findControl() wouldn’t be suffering from the same consequence, both
being driven by the object name of widgets.
# With
pointer = MQtUtil.findControl("someName")
widget = shiboken2.wrapInstance(long(ptr), QtWidgets.QWidget)
# Without
widget = window.findChild(QtWidgets.QWidget, "someName")
Where the Maya-approach is looking for a widget on a global scale, with
more room for collision, and the Qt-based approach is looking in just the
window.
--
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/CAFRtmOByR71P_-itMxjCj0G44T5LGn4iFHraXjZmAuroEP7rtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.