Logo Search packages:      
Sourcecode: accerciser version File versions

def event_monitor::EventMonitor::_eventFilter (   self,
  event 
) [private]

Determine if an event's source should make the event filtered.

@param event: The given at-spi event.
@type event: Accessibility.Event

@return: False if the event should be filtered.
@rtype: boolean

Definition at line 510 of file event_monitor.py.

00510                                :
    '''
    Determine if an event's source should make the event filtered.
    
    @param event: The given at-spi event.
    @type event: Accessibility.Event
    
    @return: False if the event should be filtered.
    @rtype: boolean
    '''
    if self.source_filter == 'source_app':
      if (hasattr(event.source, 'getApplication') and
          hasattr(self.acc, 'getApplication')):
        return event.source.getApplication() == self.acc.getApplication()
      else:
        return False
    elif self.source_filter == 'source_acc':
      return event.source == self.acc
    else:
      return True
  
  def _onHighlightEvent(self):


Generated by  Doxygen 1.6.0   Back to index