Logo Search packages:      
Sourcecode: accerciser version File versions

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

Determine if all of a node's descendants are consistently toggled.

@param iter: Parent node's iter.
@type iter: gtk.TreeIter

@return: True if descendants nodes are consistent.
@rtype: boolean

Definition at line 252 of file event_monitor.py.

00252                                         :
    '''
    Determine if all of a node's descendants are consistently toggled.
    
    @param iter: Parent node's iter.
    @type iter: gtk.TreeIter
    
    @return: True if descendants nodes are consistent.
    @rtype: boolean
    '''
    child = self.events_model.iter_children(iter)
    if child:
      first_val = self.events_model.get_value(child, self.COL_TOGGLE)
    while child:
      child_val = self.events_model.get_value(child, self.COL_TOGGLE)
      is_consistent = self._descendantsConsistent(child)
      if (first_val != child_val or not is_consistent):
        return False
      child = self.events_model.iter_next(child)
    return True

  def _onSelectAll(self, button):


Generated by  Doxygen 1.6.0   Back to index