def addMenuItems( self, items, title=None): """ Add the specified item list to the OptionMenu, with an optional 'title' item """ print 'fasjfklafja' if title: cmds.menuItem(l=title, en=0, parent=self) for item in items: cmds.menuItem(l=item, parent=self)
def getItalicized(self): return cmds.menuItem(self, query=True, italicized=True)
def getBoldFont(self): return cmds.menuItem(self, query=True, boldFont=True)
def addMenuItems(self, items, title=None): """ Add the specified item list to the OptionMenu, with an optional 'title' item """ if title: cmds.menuItem(l=title, en=0, parent=self) for item in items: cmds.menuItem(l=item, parent=self)