View Full Version : need code review for a code snippet

11 November 2012, 09:34 AM
Today, after finishing chapter 7 of Maya Python for Games & Film, book I started practicing on the code, since I also have made some python tools this chapter showed me the real way of doing things, specially building a py module that we can import in any tool as a base for GUI to startup and override methods to add more controls to it..

since code ( not display properly here so I pasted onto pastebin (

the code is compatible with version below 2010 as floating window and Maya 2011 onwards as Docked to what convention I usually stick to while making my tools for maya... I agree with starks whats the point of floating windows when we can dock...

So in this code I made a BaseGUI class that has createUI method that has some common functionality in to which i call the method self.commonLayout() to which I add controls and a second method after commonLayout() into which I editTabsLayoutcontrol as per requirement.

I would really appreciate if you leave your comments and suggestion and any update you can make feel free,

I saved it as
and run this in maya script editor paste
from DockedGUI import BaseGUI

CGTalk Moderation
11 November 2012, 09:34 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.