I am trying to load menuItem from dictionary keys
def loadMenuItems(self,*args):
"""
loads all favorite items to menu
"""
print self.favItems," in loadMenuItems"
for eachitem in self.favItems.iterkeys():
print eachitem
cmds.menuItem(label=eachitem, parent='favMenu')
on executing this function i get the following output
{‘C Drive’: ‘C:\’} in loadMenuItems
C Drive
but still the for loop doesn adds eachItemt o menuItem whose parent is ‘favMenu’…
why is it happenig…