Don Allingham wrote:

Is there an example of how to use the TreeModelFilter? It does not seem to work in the same manner as TreeModelSort.

model = gtk.TreeModelFilter(mymodel)

will fail with a "NotImplementedError: gtk.TreeModelFilter is an abstract widget"

However, I can't seem to use it like a GenericTreeModel either, inheriting from this class.

I couldn't find anything on the FAQ, and a google search did not turn up anything.

Don

It's different than TreeModelSort try:


model = mymodel.filter_new()

John

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to