Thanks! This seems to be working great. I'm calling a new method on my model called reflect_view() that is supposed to sync my list with the TreeModel. However, that method isn't working for strange reasons. Here it is -- self is a subclass of list, self.view is the instance of TreeView:
def reflect_view(self):
"""Conform the backing to the view, for when it's been
modified by some external way, like drag and drop."""
list.__delslice__(self, 0, len(self))
self.view.get_model().foreach( \
(lambda m,c,i,l: list.append( \
l, m.get_value(i, 0))) \
, self)
print self
The problem is, m.get_value is returning None.
--
David McCabe
PGP Key ID: 0xBD6B3B4E
41E5DD0466B3C3EFFAC6977DD5B80608BD6B3B4E
signature.asc
Description: Digital signature
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
