Hi.
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?)
#Here is a simplified codesnippet that illustrates my problem
#The code below does not work
#If column number is changed to 1 it works
self.burntree = GtkCTree(2, 0, ['File name on CD', 'File name on
Harddisk'])
tree_item = GtkTreeItem()
self.burntree.insert_node(None, None, ['ola','ola'])
self.burntree.insert_node(None, None, ['ola','ola'])
#...
i = 0
while 1:
try:
text = self.burntree.get_text(i, 0)
print text
i = i + 1
except:
break
/Ola A
Mandrake 9.0, pygtk version 0.6.9-3mdk
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/