With Gnome-Python 1.0.53 from Debian unstable, i can't seem to
attach any data to a row in a CTree. I don't know of any other
way to find what the user selected. Even if i were to catch the
selection signal, i would still have the same problem of mapping
the node to useful data. Am i missing something obvious?

Anyway, i've attached a small program demonstrating the problem.
The error message i get is below.

Traceback (innermost last):
  File "hey.py", line 11, in ?
    ctree.set_row_data(node, "hey")
  File "/usr/lib/python1.5/site-packages/gtk.py", line 1278, in set_row_data
    _gtk.gtk_clist_set_row_data(self._o, row, data)
TypeError: illegal argument type for built-in operation

-- 
Eric Gillespie, Jr. <*> [EMAIL PROTECTED]
Software Developer
Progeny Linux Systems - http://progenylinux.com
from gtk import *

w = GtkWindow(WINDOW_TOPLEVEL)
w.show()

ctree = GtkCTree()
ctree.show()
w.add(ctree)

node = ctree.insert_node(None, None, "hey")
ctree.set_row_data(node, "hey")

mainloop()

PGP signature

Reply via email to