On 06/17/2011 05:05 PM, Arjan Molenaar wrote:

On 17 Jun 2011, at 05:25, Just Fill Bugs wrote:

On 06/17/2011 12:44 AM, Arjan Molenaar wrote:
Hi,

I've started porting Gaphas to GTK+ 3 now, using PyGI on Linux. It all goes 
quite smoothly. Only now I'm running
into the problem that my widget should implement the Gtk.Scrollable interface. 
For that it should define
a few properties.

In C those need to be declared using g_object_class_override_property(). What's 
the Python counterpart for this?


It seems the PyGobject examples/properties.py works okey once you replaced 
gobject with GObject to make it gi compatible. So take a look at the 
PyGobject's examples directory.

Did that. Only there the creation of new properties is demoed. I need to 
implement properties defined in an interface. For that the protocol is slightly 
different. I can't find how that is covered.


Seems that you can overrides the get_property and set_property methods of GObject. Don't know if that works when calling from C code.


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to