On Wed, Jan 01, 2003 at 09:27:25PM +0100, Ola wrote:
> I have a GtkCTree with two columns. if I try to access the text in
> column 0 I get an exception, if I try to access column 1 it works. Why?
> (or is there another, better whay to iterate through the data in the
> tree?)

Well, the CTree is a pretty wierd widget. I have the same trouble as you
using get_text(), but I suspect it is because column 0 is the tree
column. Have you tried using node_get_text(node, column) instead? It
should work. Of course, you need to get a reference to the node - it's
returned by insert_node() IIRC, but you can also use node_nth(row).

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
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