Hi David and others,
David suggested to make some more debug-print to find my iter problem in
a Tree/List model - which only make the problem more mysterious to me.
I have added some print statement so the code now looks like this:
iter=self.get_iter_root()
while iter :
r=self.get_value(iter,0)
fd.write("%s\n" % r)
print "before",`iter`
iter=self.iter_next(iter)
print "after",`iter`
I have asked to user facing the problem to try it out, and send me the
trace. It looks like this:
before <GtkTreeIter at 0x822dc08>
after 1
Traceback (most recent call last):
File "./pyblink.py", line 61, in newReference
reflist.save()
File "./pyblink.py", line 104, in save
r=self.get_value(iter,0)
So we know that iter is a valid GtkTreeIter at the "before" print,
but after the call to iter_next it has the value 1.
I thought it should be either a new GtkTreeIter or false.
Any ideas ?
regards Thomas
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/