John Finlay wrote:
<skipped/>
Your custom model has a couple of broken methods:
on_iter_n_children() and on_iter_nth_child()
These do not properly handle the case where iter or parent is None. These special cases indicate the toplevel rows should be used. See:
file:///usr/local/doc/pygtk2reference/class-gtktreemodel.html#method-gtktreemodel--iter-n-children <cid:[EMAIL PROTECTED]>
file:///usr/local/doc/pygtk2reference/class-gtktreemodel.html#method-gtktreemodel--iter-nth-child <cid:[EMAIL PROTECTED]>
for more info. As a guess you should start each with something like:
if not node: node = self.doc
Thank you very much! Fixed treemodel.py is attached and works clean :)
-- Regards, Vyt mailto: [EMAIL PROTECTED] JID: [EMAIL PROTECTED]
treemodel.py.bz2
Description: application/bzip
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/