[pygtk] CellRendererToggle 'toggled' callback: path problem

Alexander Konovalenko a-konovalenko at yandex.ru
Sat Mar 11 23:30:47 WST 2006


[Update: attachment now really included.]

I'm trying to attach a callback to the gtk.CellRendererToggle's
'toggled' signal. According to the API reference, the callback
receives the path of the toggled cell as its second argument. 
The docs also specify that all the paths received from PyGtk are
passed as tuples. However, in this case the path is passed as
a string.

Attached is a small script to reproduce the problem, along with its
output. Here I expected the paths to be tuples that look like (0,),
(2,), (5,), but actually they are strings: '0', '2', '5'.

Is this a bug?

(Please CC me.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: path_problem.py
Type: application/octet-stream
Size: 1316 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060311/03b91bdc/path_problem.obj


More information about the pygtk mailing list