On Wed, Mar 10, 2010 at 12:45:51PM +0100, Tobias Weber wrote:
> Hi,
> every widget inherits it, but no matter what argument type I
> set_property('user-data', value) to I get an error. Probably cause it's
> supposed to be a pointer.
>
> Now how do I attach a dictionary of custom meta data to a TreeViewColum as
> recommended?
> http://faq.pygtk.org/index.py?req=show&file=faq13.026.htp
"or pass user data in"
what it means is you should use something like:
col = gtk.TreeViewcolumn(..)
col.connect('clicked', clicke_cb, 'my_data')
def ckecked_cb(column, my_data):
pass
it you want to write data to a widget, you can also use set_data():
col.set_data('my_data', string_or_what_i_want)
sandro
*:-)
--
Sandro Dentella *:-)
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/