Пример #1
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)
Пример #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)
Пример #3
0
 def processEvents(self, events):
     """Handle the events"""
     for name_source, actor in events:
         if actor.active:
             actor.processEvent(name_source)