Slight typo in the doc string, but STACK_SELECTION should be STATE_ROOT_SELS 
and USER_SELECTION should be STATE_USER_SELS

On Wednesday, October 26, 2016 at 4:36:05 PM UTC-7, likage wrote:
>
> @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/5201aaa7-fe5e-4fc0-889d-8566df0fef23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to