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   [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