First a bribe -- in return for help/fixes here I'll write up my
experiences with gtk.GenericTreeModel...
I have a custom model which inherits from gtk.GenericTreeModel. My code
calls view.get_selection().selected_foreach(worker) which iterates over
every selected row and calls worker() with a path and an iterator.
However, this iterator is not an iterator in the GenericTreeModel way of
thinking -- it is a real GtkTreeIter. This seems fine but when I call my
method in the custom model it cannot do anything with it!
I have lost the "wrapped" GtkTreeIter (a simple Python object, which I
was using as an integer index into a internal list). I cannot convert
the given path into an iterator as I get a real GtkTreeIter again, and
the method I want to call needs an index which is stored in the user
data. Argh!
I can post code samples if my poor explanation is not good enough (it
will force me to clean up the poor code :)
Thanks,
Ross
--
Ross Burton mail: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
diary: http://advogato.org/person/RossBurton
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/