Re: Extending g-ir bindings
- From: Tomeu Vizoso <tomeu tomeuvizoso net>
- To: David Nečas <yeti physics muni cz>
- Cc: python-hackers-list gnome org
- Subject: Re: Extending g-ir bindings
- Date: Fri, 23 Sep 2011 08:38:30 +0200
2011/9/22 David Nečas <yeti physics muni cz>:
>
> Hello, I have a library with some GObject-derived classes, have
> generated the gir and typelib using g-ir, can import it from
> gi.repository in python and it works.
>
> Now I'd like my classes to do things such as support the Py_Buffer
> interface (or other interfaces). What is the least painful way how to
> achieve this?
Hi,
you can add an override for your typelib such as:
http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gio.py
And it can be written in C if you want to do things that cannot be
done in Python.
Regards,
Tomeu
> Thanks,
>
> Yeti
>
> _______________________________________________
> python-hackers-list mailing list
> python-hackers-list gnome org
> http://mail.gnome.org/mailman/listinfo/python-hackers-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]