Michele Campeotto wrote:

>Hello,
>  I have a custom TreeModel and a TreeView. I want to add data after
>they have been created.
>  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.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
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