def buildMainLayout(self):
'''Build the main part of the ui
'''
#tabs = mc.tabLayout()
#tab1 = mc.columnLayout(adj=True)
#self.swatch_selected = self.colorControlLayout()
#mc.button(label='Color Selected', command=self.colorSelected)
#mc.setParent('..')
#tab2 = mc.columnLayout(adj=True)
self.swatch_range1 = self.colorControlLayout(label='First Selected')
self.swatch_range2 = self.colorControlLayout(label='Last Selected')
mc.separator(horizontal=True, height=10)
mc.button(label='Color Selected Nodes', command=self.colorSelectedRange)
#mc.setParent('..')
#tab3 = mc.columnLayout(adj=True)
#self.positionWidgets = {}
#for xyz in 'XYZ':
#for m in ['Min','Max']:
#self.positionWidgets[m+xyz] = self.colorControlLayout(label='{} {}'.format(m,xyz))
mc.setParent('..')
#mc.tabLayout( tabs, edit=True, tabLabel=((tab1, 'Color Control'), (tab2, 'Color Range')) )
评论列表
文章目录