parameters: (self,eventMap,ignoreMissing = False)
docstring: Convenience function to map widget events to functions
  		in a batch.
  
  		Subsequent calls of mapEvents will merge events with different
  		widget names and override the previously set callback.
  		You can also pass C{None} instead of a callback, which will
  		disable the event completely.
  
  		@param eventMap: A dictionary with widget/event names as keys and callbacks as values.
  		@param ignoreMissing: Normally this method raises a RuntimeError, when a widget
  		can not be found - this behaviour can be overriden by passing True here.
  
  		The keys in the dictionary are parsed as C{"widgetName/eventName"} with the slash
  		separating the two. If no slash is found the eventName is assumed to be "action".
  
  		Additionally you can supply a group name or channel C{"widgetName/eventName/groupName"}.
  		Event handlers from one group are not overridden by handlers from another group.
  		The default group name is C{"default"}.
  
  		Example::
  			guiElement.mapEvents({
  				"button" : guiElement.hide,
  				"button/mouseEntered" : toggleButtonColorGreen,
  				"button/mouseExited" :  toggleButtonColorBlue,
  			})
docstring_summary: Convenience function to map widget events to functions
  		in a batch.
docstring_tokens: Convenience function to map widget events to functions in a batch .
function: def mapEvents(self,eventMap,ignoreMissing = False):
  		"""
  		Convenience function to map widget events to functions
  		in a batch.
  
  		Subsequent calls of mapEvents will merge events with different
  		widget names and override the previously set callback.
  		You can also pass C{None} instead of a callback, which will
  		disable the event completely.
  
  		@param eventMap: A dictionary with widget/event names as keys and callbacks as values.
  		@param ignoreMissing: Normally this method raises a RuntimeError, when a widget
  		can not be found - this behaviour can be overriden by passing True here.
  
  		The keys in the dictionary are parsed as C{"widgetName/eventName"} with the slash
  		separating the two. If no slash is found the eventName is assumed to be "action".
  
  		Additionally you can supply a group name or channel C{"widgetName/eventName/groupName"}.
  		Event handlers from one group are not overridden by handlers from another group.
  		The default group name is C{"default"}.
  
  		Example::
  			guiElement.mapEvents({
  				"button" : guiElement.hide,
  				"button/mouseEntered" : toggleButtonColorGreen,
  				"button/mouseExited" :  toggleButtonColorBlue,
  			})
  
  		"""
  		children = self.getNamedChildren(include_unnamed=True)
  		for descr,func in list(eventMap.items()):
  			name, event_name, group_name = events.splitEventDescriptor(descr)
  			#print name, event_name, group_name
  			widgets = children.get(name,[])
  			if widgets:
  				for widget in widgets:
  					widget.capture( func, event_name = event_name, group_name = group_name )
  			elif not ignoreMissing:
  				raise RuntimeError("No widget with the name: %s" % name)
function_tokens: def mapEvents ( self , eventMap , ignoreMissing = False ) : children = self . getNamedChildren ( include_unnamed = True ) for descr , func in list ( eventMap . items ( ) ) : name , event_name , group_name = events . splitEventDescriptor ( descr ) #print name, event_name, group_name widgets = children . get ( name , [ ] ) if widgets : for widget in widgets : widget . capture ( func , event_name = event_name , group_name = group_name ) elif not ignoreMissing : raise RuntimeError ( "No widget with the name: %s" % name )