[pygtk] Custom Tree Model and row_* Signals

Jeffrey C. Ollie jeff at ollie.clive.ia.us
Wed Jan 7 16:11:25 WST 2004


Hi,

I'm working on implementing a custom tree model.  I'm having a problem
with dynamically adding items to the tree model, and having the display
updated.  I've attached a short example program that demonstrates my
problem.  When run, you get the following output:

Traceback (most recent call last):
  File "test.py", line 22, in add
    self.row_inserted(self.on_get_path(item), item)
TypeError: iter should be a GtkTreeIter
 
(test.py:30053): Gtk-CRITICAL **: file gtktreeview.c: line 6992
(gtk_tree_view_unref_tree_helper): assertion `node != NULL' failed

The three entries that are set up when the model is initialized display
just fine.  The problem occurs with other row_* signals that I've
tried.  Can anyone help me figure out my problem?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 2635 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20040107/fadbab22/test.py


More information about the pygtk mailing list