Il mer, 2002-03-20 alle 13:47, James Henstridge ha scritto:
> Michele Campeotto wrote:
> > What should I do beside adding data to my model to make the view
> >notice the change?
> You need to emit one of the GtkTreeModel signals. If you are inserting
> rows, you probably want to emit the row_inserted signal:
> self.emit("row_inserted", path, iter)
Fine, here is what I'm doing (this is a method in my GenericTreeModel
subclass and root.childrens is a Pythin list):
def mount(self, node):
node.parent = self.root
self.root.childrens.append(node)
path = (self.root.childrens.index(node),)
treeiter = self.get_iter(path[0])
self.emit('row-changed', path, treeiter)
but nothing happens in my view...
Beside this, why do TreeModel.getIter() expects a bunch of integers to
be passed instead of a tuple, wich should be PyGTK's TreePath?
--
-- Michele - www.micampe.it
Non so se mi crederete. Passiamo met� della vita
a deridere ci� in cui altri credono,
e l'altra met� a credere in ci� che altri deridono.
-- Stefano Benni, "Il Bar Sotto il Mare"
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/