Logo Search packages:      
Sourcecode: accerciser version File versions

def accerciser::accessible_treeview::AccessibleTreeView::_removeChild (   self,
  parent_iter,
  parent 
) [private]

Remove a child from the given accessible node.

@param parent_iter: Th iter of the row that needs a child removed. 
@type parent_iter: L{gtk.TreeIter}
@param parent: The given row's accessible.
@type parent: L{Accessibility.Accessible}

Definition at line 548 of file accessible_treeview.py.

00548                                              :
    '''
    Remove a child from the given accessible node.

    @param parent_iter: Th iter of the row that needs a child removed. 
    @type parent_iter: L{gtk.TreeIter}
    @param parent: The given row's accessible.
    @type parent: L{Accessibility.Accessible}
    '''
    if parent_iter:
      iter = self.model.iter_children(parent_iter)
    else:
      iter = self.model.get_iter_root()
    while iter:
      if self.model[iter][COL_ACC] not in parent:
        if not self.model.remove(iter):
          break
      else:
        iter = self.model.iter_next(iter)


  def _refreshChildren(self, iter):


Generated by  Doxygen 1.6.0   Back to index