Re: [pygtk] GtkWarning: gtk_tree_view_append_column

2005-05-18 Thread Christian Robottom Reis
On Wed, May 18, 2005 at 07:45:09PM +, Frederico Arnoldi wrote:
>   I have been using a treeview to display data. The first time I load it 
> data everything works, but sometimes when I try to load another or the same 
> data file, this message is sent:
> 
> " GtkWarning: gtk_tree_view_append_column: assertion `column->tree_view == 
> NULL' failed
>  self._spp_treeview.append_column(self.spp)"

Why are you appending the columns multiple times? They only need to be appended
once, to set up the treeview -- once that's done you should be fine.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] GtkWarning: gtk_tree_view_append_column

2005-05-18 Thread Frederico Arnoldi
  Hi All,
  I have been using a treeview to display data. The first time I load it 
data everything works, but sometimes when I try to load another or the same 
data file, this message is sent:

" GtkWarning: gtk_tree_view_append_column: assertion `column->tree_view == 
NULL' failed
 self._spp_treeview.append_column(self.spp)"

  At the second time this message is sent, the data is improperly loaded.
The method I use to clear treeview is:
   self.liststore.clear()
   self.spp.clear() ## gtk.TreeViewColumn
   self.seqs.clear()##gtk.TreeViewColumn
To create a new set of data on Liststore:
   for rows in self.data: ## where self.data contains tuples of data
self.liststore.append([rows[0], rows[1]])
To display new set of data:
self._seqs_treeview.append_column(self.seqs)
   self._spp_treeview.append_column(self.spp)
I can't understand where is the problem and I didn't find any solved 
similiar problem on google.
Does anyone could help me?

Thanks
Fred
_
MSN Messenger: converse online com seus amigos .  
http://messenger.msn.com.br

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/