parameters: (self, menuItem, setCurrent)
return_statement: return id
docstring: Creates an id for the menuItem and optinally set it to current menu string.
docstring_summary: Creates an id for the menuItem and optinally set it to current menu string.
docstring_tokens: Creates an id for the menuItem and optinally set it to current menu string .
function: def _getId(self, menuItem, setCurrent):
  		"""Creates an id for the menuItem and optinally set it to current menu string.
  		"""
  		#  get a free id (button value)
  		if (len(self.itemDict) == len(self.displayList)):
  			#  Blender's button values start with 1
  			id = len(self.displayList) + 1
  		else:
  			#  first unused
  			id = [(x+1) for x in range(len(self.displayList)) if (x+1) not in self.itemDict.keys()][0]
  		#  assign menu item to that id
  		self.itemDict[id] = menuItem
  		# manage current state
  		if setCurrent:
  			self.current = id
  		return id
function_tokens: def _getId ( self , menuItem , setCurrent ) : #  get a free id (button value) if ( len ( self . itemDict ) == len ( self . displayList ) ) : #  Blender's button values start with 1 id = len ( self . displayList ) + 1 else : #  first unused id = [ ( x + 1 ) for x in range ( len ( self . displayList ) ) if ( x + 1 ) not in self . itemDict . keys ( ) ] [ 0 ] #  assign menu item to that id self . itemDict [ id ] = menuItem # manage current state if setCurrent : self . current = id return id