def processEvents(self, events):
     """Handle the events"""
     inhibited = set()
     for (event, obj), actor in events:
         if actor.active and not event in inhibited:
             # Process the event
             new_inhibits = actor.processEvent((event, obj))
             # Record if we need to inhibit further events of a certain type
             if new_inhibits:
                 inhibited.update(new_inhibits)
Example #2
0
 def processEvents(self, events):
     """Handle the events"""
     inhibited = set()
     for (event, obj), actor in events:
         if actor.active and not event in inhibited:
             # Process the event
             new_inhibits = actor.processEvent((event, obj))
             # Record if we need to inhibit further events of a certain type
             if new_inhibits:
                 inhibited.update(new_inhibits)
Example #3
0
 def processEvents(self, events):
     """Handle the events"""
     for name_source, actor in events:
         if actor.active:
             actor.processEvent(name_source)