@Marcus
Glad to know that I am somewhat on the right track! To be honest, I could
not find much info online, either that or I must have been typing it
wrongly, unable to get a decent result
@Justin
Thanks for the code, decided to implement the way that you have mentioned.
Another quick question if you guys don't mind...
If I am going to write a doc string for this class (while using the method
as mentioned by Justin).. Would the following makes any sense?
I suppose then there will be no need for me to write a doc string under the
`__init__` for the `state` parameter?
class HierarchyDialog(QtGui.QDialog):
"""
Keywords:
state:
Denotes the selection case - 'stack_sel' or 'user_sel'
STACK_SELECTION :
States the case if the selection is Stack
USER_SELECTION :
States the case if the selection is User-based
"""
# Documenting states
STATE_ROOT_SELS = "root_sels"
STATE_USER_SELS = "user_sels"
def __init__(self, state, parent=None):
QtGui.QDialog.__init__(self, parent)
...
--
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/75bfabd0-4084-42ff-9b63-5e5e01d653c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.