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)
> Where path is a tuple giving the location in the tree, and iter is a 
> GtkTreeIter representing the row.

  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

Quitters Never Win, Winners Never Quit,
But Those Who Never Win AND Never Quit Are Idiots.

_______________________________________________
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