Class k.u.o.ObjectTree(ObjectList):

Part of kiwi.ui.objectlist

Signals

Function__init__

Create a new ObjectList object.

Function_append_internalUndocumented
Functionappend

Append the selected row in an instance.

Functionprepend

Prepend the selected row in an instance.

Functionexpand

This method opens the row specified by path so its children

Functioncollapse

This method collapses the row specified by path

Functionget_root

This method returns the root object of a certain instance. If

Functionget_descendants

This method returns the descendants objects of a certain instance.

Function_on_treeview__row_expandedUndocumented
def __init__(self, columns=, objects=None, mode=gtk.SELECTION_BROWSE, sortable=False, model=None):

Create a new ObjectList object.

def _append_internal(self, parent, instance, select, prepend):
Undocumented
def append(self, parent, instance, select=False):

Append the selected row in an instance.

def prepend(self, parent, instance, select=False):

Prepend the selected row in an instance.

def expand(self, instance, open_all=True):

This method opens the row specified by path so its children are visible.

def collapse(self, instance):

This method collapses the row specified by path (hides its child rows, if they exist).

def get_root(self, instance):

This method returns the root object of a certain instance. If the instance is the root, then returns the given instance.

def get_descendants(self, root_instance):

This method returns the descendants objects of a certain instance. If the given instance is a leaf, then return an empty sequence.

def _on_treeview__row_expanded(self, treeview, treeiter, treepath):
Undocumented