Re: [pygtk] Overriding GObject methods in Python
- From: Hrvoje Nikšić <hrvoje niksic avl com>
- To: pygtk daa com au, gtk-list <gtk-list gnome org>
- Subject: Re: [pygtk] Overriding GObject methods in Python
- Date: Tue, 28 Nov 2006 10:01:45 +0100
On Tue, 2006-11-28 at 04:57 +0100, John K Luebs wrote:
> > The idea is to reuse GObject facilities where possible (e.g. types,
> > inheritance, signals, GValues), and simply implement the
> appropriate
> > vtable semantics overridable at runtime. I was wondering if anyone
> else
> > has stumbled on this and already solved it.
>
> This is precisely what pygtk tries to do.
[...]
> I can't see what is wrong with the way pygtk does things
The PyGTK approach requires writing a piece of glue C code for every
class whose methods need to be overridden. See the example of
GtkCellRenderer.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]