Re: Overriding GObject methods in Python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2006-11-24 at 12:20 +0100, Murray Cumming wrote:
> If that glue code is hand-coded, I guess it's repetitive and can be 
> generated somehow. In a future pygtk that uses the future
> introspection 
> features of GObject, it could probably even be done at runtime for 
> arbitrary GObjects.

Part of the problem is that GObject (as far as I can tell) doesn't
provide sufficient introspection for this.  As mentioned in the previous
posting, virtual methods are just function pointers in the class struct.
That's why PyGTK must use a custom GObject class to allow Python classes
to override them.


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux