Hi, I'm trying to build a UI class that will generate dynamic tabs based on a variable in the __init__ method. The idea is this:
1. set the initial variable number in __init__ (can be changed later on the instanced class) 2. in the createUI() method, query the variable, and set it to dynamically create a tab in the formLayout 3. Each tab will have common properties (distance from UI window, common buttons (which are in a commonButtons() method), as well as the possibility of customButtons()) 4. ...and that's it - for now. I understand also that for this to work, the tabs themselves should be dictionaries, in order to get the dynamic creation happening. I get the logic, but unfortunately the Python syntax still eludes me somewhat. Here's the link to the code: http://pastebin.com/KHFJF1jX Much appreciated! -- 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/81b82071-9f42-4c72-9517-92e10f068844%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
