Logo Search packages:      
Sourcecode: accerciser version File versions

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

Toggle the given node. If the node has children toggle them accordingly 
too. Toggle all anchester nodes too, either true, false or inconsistent,
sepending on the value of their children.

@param iter: Iter of node to toggle.
@type iter: gtk.TreeIter
@param val: Toggle value.
@type val: boolean

Definition at line 214 of file event_monitor.py.

00214                                   :
    '''
    Toggle the given node. If the node has children toggle them accordingly 
    too. Toggle all anchester nodes too, either true, false or inconsistent,
    sepending on the value of their children.
    
    @param iter: Iter of node to toggle.
    @type iter: gtk.TreeIter
    @param val: Toggle value.
    @type val: boolean
    '''
    self.events_model.set_value(iter, self.COL_INCONSISTENT, False)
    self.events_model.set_value(iter, self.COL_TOGGLE, val)
    self._setAllDescendants(iter, val)
    parent = self.events_model.iter_parent(iter)
    while parent:
      is_consistent = self._descendantsConsistent(parent)
      self.events_model.set_value(parent, 
                                  self.COL_INCONSISTENT,
                                  not is_consistent)
      self.events_model.set_value(parent, self.COL_TOGGLE, val)
      parent = self.events_model.iter_parent(parent)
  
  def _setAllDescendants(self, iter, val):


Generated by  Doxygen 1.6.0   Back to index