[pygtk] Overriding interface properties

Just Fill Bugs mozbugbox at yahoo.com.au
Fri Jun 17 11:25:01 WST 2011


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.




More information about the pygtk mailing list