(self, event, parameter)
Process an event.
        
        This is the main method of this class. It is called as soon as an 
        interaction event is raised by an user action.
        
        Arguments:
          * event: the event to process, an InteractionEvent string.
          * parameter: the parameter returned by the param_getter function
            specified in the related binding.
Process an event.
        
        This is the main method of this class. It is called as soon as an 
        interaction event is raised by an user action.
        
        Arguments:
          * event: the event to process, an InteractionEvent string.
          * parameter: the parameter returned by the param_getter function
            specified in the related binding.
Process an event . This is the main method of this class . It is called as soon as an interaction event is raised by an user action . Arguments : * event : the event to process an InteractionEvent string . * parameter : the parameter returned by the param_getter function specified in the related binding .
def process_event(self, event, parameter):
        """Process an event.
        
        This is the main method of this class. It is called as soon as an 
        interaction event is raised by an user action.
        
        Arguments:
          * event: the event to process, an InteractionEvent string.
          * parameter: the parameter returned by the param_getter function
            specified in the related binding.
        
        """
        # process None events in all processors
        if event is None and self.prev_event is not None:
            for name, processor in self.get_processors().iteritems():
                processor.process_none()
            self.cursor = None
        
        # process events in all processors
        if event is not None:
            for name, processor in self.get_processors().iteritems():
                if processor.activated and processor.registered(event):
                    # print name, event
                    processor.process(event, parameter)
                    cursor = processor.get_cursor()
                    if self.cursor is None:
                        self.cursor = cursor
        self.prev_event = event
def process_event ( self , event , parameter ) : # process None events in all processors if event is None and self . prev_event is not None : for name , processor in self . get_processors ( ) . iteritems ( ) : processor . process_none ( ) self . cursor = None # process events in all processors if event is not None : for name , processor in self . get_processors ( ) . iteritems ( ) : if processor . activated and processor . registered ( event ) : # print name, event processor . process ( event , parameter ) cursor = processor . get_cursor ( ) if self . cursor is None : self . cursor = cursor self . prev_event = event