On Fri, Jul 15, 2016 at 7:20 AM yann19 <[email protected]> wrote:

> Hi all, very much appreciated for the replies.
>
> Like some have mentioned, I am having issues whether to use camelCase or
> not, though at certain pep8 docs seem to be implying that I can mix those
> underscores etc. such as
>
> class pepTest(object):
>     def _init_(self):
>         self.randomValue = 10
>         ...
>     def getMayaVersion(self):
>         maya_version = str(mc.about(v = True))
>
>
> And that is probably the root of my confusion...
> Still not sure what is right or wrong...
>

Are you referring to the __init__() ? If so, that is one of the magic
methods, which are surrounded by double underscores. The camelCase /
snake_case thing isn't really applicable to that. Similarly, you can make
_protectedMethods and __privateMethods


>
> Also an off topic question - how complicated will it be to change all maya
> ui layout commands into pyqt format (just so you know, I have an entire ui
> that is made up of maya commands)
>

"Complicated" is relative to whether you have ever written pyqt in the
past. If you have, then it is easy to rewrite a layout that uses native
Maya UI into pyqt. If you have never done it before, then you will have to
learn pyqt first.


> --
> 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/f051c7bf-18ba-4dc5-8a30-eb6450260912%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/f051c7bf-18ba-4dc5-8a30-eb6450260912%40googlegroups.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/CAPGFgA0604_38BanVcsA%3D9F6WefNkw7C90AY-a7AO5ntJFEBnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to