On Thu, Mar 23, 2017 at 1:28 PM yann19 <[email protected]> wrote:

> Actually I am trying to rewrite this tool - spPaint3d (
> https://www.highend3d.com/maya/script/sppaint3d-for-maya), adding a few
> more features
> and at the same time trying to revamp the code while improving my coding
> skills.
>
> Though I manage to get the Uis and some of the widgets done, (if you have
> downloaded the python code), it is has quite some stuff all over the place
> which makes it hard for me to add in the additional features.
>
> As for the split ups, I am still trying to get my head around it,
> especially so when I am still unsure if I should place both the ui
> creations and signals together in a file (usually that is what I did but
> they are of small code files) or if I should split it.
> This may be a bit much to ask, but is there any documentations / sample
> codes that I can refer to for reference?
>

I don't have any documentation or samples to offer on the subject, but
basically just read the code of any established pyqt project, possible?

It is a general programming practice to apply separation of concerns to
your units of code (classes, modules, ..) and also to keep an eye on your
public API of any object. So ideally what you are trying to do is have good
encapsulation, where a particular class hides away as much of the
implementation details as possible, while providing only the neccessary top
level access as public attributes. This means trying to hide away embedded
child widgets and objects if you can, and routing child signals to the top
if they are important to expose. The less you expose on the surface of your
APIs, the less likely they are to break consumers of that code if you were
to make changes


> --
> 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/1794b37a-6440-40db-b744-853d576c778b%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/1794b37a-6440-40db-b744-853d576c778b%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/CAPGFgA2Mg%2Bx-2ofxVDMfVcee70hjhuCejJnO8zT3909vfy-G2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to