Added a tag column in the GO browser to help link it to selections.

This commit is contained in:
2007-03-01 19:13:13 +00:00
parent 442b5fed5f
commit ae9a207a71
2 changed files with 39 additions and 4 deletions

View File

@@ -192,12 +192,13 @@ def read_default_go():
def _add_subgraphs(treestore, ontology, parent, nodes):
for n in nodes:
i = treestore.insert(parent, 0, (n['id'], n['name'], n))
i = treestore.insert(parent, 0, (n['id'], n['name'], False, n))
_add_subgraphs(treestore, ontology, i, ontology.successors(n))
def get_go_treestore(ontology):
ts = gtk.TreeStore(gobject.TYPE_STRING, ## ID
gobject.TYPE_STRING, ## Name
gobject.TYPE_BOOLEAN, ## Selected
gobject.TYPE_PYOBJECT) ## Node
_add_subgraphs(ts, ontology, None, [ontology.get_bp()])
return ts