Logo Search packages:      
Sourcecode: accerciser version File versions

def event_monitor::EventMonitor::_getEnabledEvents (   self,
  iter 
) [private]

Recursively walks through the events model and collects all enabled 
events in a list.

@param iter: Iter of root node to check under.
@type iter: gtk.TreeIter

@return: A list of enabled events.
@rtype: list

Definition at line 191 of file event_monitor.py.

00191                                    :
    '''
    Recursively walks through the events model and collects all enabled 
    events in a list.
    
    @param iter: Iter of root node to check under.
    @type iter: gtk.TreeIter
    
    @return: A list of enabled events.
    @rtype: list
    '''
    listen_for = []
    while iter:
      toggled = self.events_model.get_value(iter, self.COL_TOGGLE)
      inconsistent = self.events_model.get_value(iter, self.COL_INCONSISTENT)
      if toggled and not inconsistent:
        listen_for.append(self.events_model.get_value(iter, self.COL_FULL_NAME))
      elif inconsistent:
        listen_for_child = self._getEnabledEvents(self.events_model.iter_children(iter))
        listen_for.extend(listen_for_child)
      iter = self.events_model.iter_next(iter)
    return listen_for

  def _iterToggle(self, iter, val):


Generated by  Doxygen 1.6.0   Back to index