pymel.core.uitypes.UITemplate

digraph inheritance49c1d0fb5d {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "UITemplate" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="#pymel.core.uitypes.UITemplate",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
}

class UITemplate(name=None, force=False)

from pymel.core import *

template = ui.UITemplate( ‘ExampleTemplate’, force=True )

template.define( button, width=100, height=40, align=’left’ ) template.define( frameLayout, borderVisible=True, labelVisible=False )

# Create a window and apply the template. # with window():

with template:
with columnLayout( rowSpacing=5 ):
with frameLayout():
with columnLayout():
button( label=’One’ ) button( label=’Two’ ) button( label=’Three’ )
with frameLayout():
with columnLayout():
button( label=’Red’ ) button( label=’Green’ ) button( label=’Blue’ )
define(uiType, **kwargs)
uiType can be:
  • a ui function or class
  • the name of a ui function or class
  • a list or tuple of the above
static exists(name)
name()
pop()
push()

Previous topic

pymel.core.uitypes.ToolCollection

Next topic

pymel.core.uitypes.VectorFieldGrp

Core

Core Modules

Other Modules

This Page