SHARE
TWEET

Untitled

a guest Jul 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def initUI(self):
  2.   # Creating a window and other UI elements
  3.  
  4.   # A loop that creates 4 optionMenu items
  5.   for i in range(0, 3):
  6.       self.createMenu(i)
  7.  
  8. # a helper method that scopes the iterator variable inside itself
  9. def createMenu(self, level):
  10.   self.menus[level] = cmds.optionMenu(l="Menu"+str(level), cc=lambda x: self.indexFolders(x, level))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top