Exemplo n.º 1
0
def gather_group(store, iter, group):
    """
    Returns a list of TreeRowReferences for an iter and every child of the iter
    """
    if store.iter_has_child(iter):
        child_iter = store.iter_children(iter)
        while child_iter:
            gather_group(store, child_iter, group)
            child_iter = store.iter_next(child_iter)

    refs = ga_gtk_compat.tree_row_reference(store, store.get_path(iter))
    group.append(refs)

    return group
Exemplo n.º 2
0
def gather_group(store, iter, group):
    """
    Returns a list of TreeRowReferences for an iter and every child of the iter
    """
    if store.iter_has_child(iter):
        child_iter = store.iter_children(iter)
        while child_iter:
            gather_group(store, child_iter, group)
            child_iter = store.iter_next(child_iter)

    refs = ga_gtk_compat.tree_row_reference(store, store.get_path(iter))
    group.append(refs)

    return group