This example project is to create Maya tool. By binding *.ui file.
Binding *.ui file for the tool is way more faster. So by usin this method,
I believe it will more faster.
This method wasn't the right or wrong. But till now, this method is suit for me so damn well.
There's no fully correct or bad method for programming/scripting.
Which one is suit you well will cut timeline for development.
This feature added for Autodesk Maya 2017++
By default. Most of your module for tool is placed on script folder
or from maya version script version.
Default Script Maya Folder:
Windows10 : username\Documents\maya\scripts
MAC : $HOME/Library/Preferences/Autodesk/maya/scripts
Linux : $HOME/maya/scripts
So if you want add more control tools for different version, you can go to:
Windows10 : username\Documents\maya\mayaVERSION\scripts
You can place "myMayaTool" folder to that location
See "polygonTool.py" for more detail.
Basically we're just create 2 class for 2 window.
The main core class is to build the function.
And second class is to bind it with Maya window.