I've tun into a problem using custom properties defined in a registered 
Python sub-class of a gtk class.  If I send property values into the 
constructor (via __gobject_init__()), the callback method is invoked with 
a Python instance other than the one I'm initializing.  This is because 
the properties are set before the Python instance is registered with the 
call to pygobject_register_wrapper() in pygobject.c.

The workaround is to create the object and then set the properties in the
Python __init__ method, but it would be nice if this just worked.  The C
code could simply create the object with no properties, register the
wrapper, and then set the properties.  Or, could it somehow register the
wrapper and then construct the gtk object?

John
_______________________________________________
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