[pygtk] gtk.TreeView

Koch Máté mkoch at allied-visions.com
Mon Sep 1 17:58:58 WST 2008


Hi All,

I'm developing an application which has got a window with a treeView
widget. Inside this widget there is a multi-level tree structure (some
kind of pseudo-code, IF-THEN-ELSE branches inside each other). The
tree fills up from a database, and thereafter the user can edit it
(delete subtree, add leafs or subtrees). After any action, or a given
time interwall, the modifications are saved to the db, and the
structure is reloaded (this is inportant, because multiple users can
work on it in real-time).
My question is, that is there any easy way, to store the status of the
current look of the tree (I mean, which branches are expanded, which
are collapsed), and after the reloading, revert tis state as much as
possible? The problem is, that the reloaded structure is not exactly
the same, some leafs or subtrees are missing, or something is
inserted, but largest part of the tree is the same.

Thank you for help,
best regards,
Mate Koch

P.S: sorry, I sent my former message from wrong address

-- 
   KOCH Mate
 .........................
 HUNGARY, ELTE
     V. grade
 Phys. & CS.stud.
 .........................
 skype:          koch.mate
 www: elmfiz.elte.hu/~koch
 www2: studiokoch.hu/
 phone:   +36 20 9795411
 room: 5.91 É. T.
.........................


More information about the pygtk mailing list