On 2020-09-06, Michael Torrie <torr...@gmail.com> wrote: > On 9/4/20 3:24 PM, Grant Edwards wrote: >> I assume that difference is because pygtk was hand-written and gi is >> built auto-magically using SWIG or something like that? > > Essentially, yes. Although pygobject does not use a tool like swig to > generate static wrappers. Rather it uses the GTK introspection API to > ask gobject's for their methods and attributes, and then marshalls and > calls them at runtime.
I was wondering about that. Some of the error messages you get when you mistype something hinted that the "wrapping" is being done on-the-fly. > So you can use pygobject with any GObject-based binary library, not > just GTK+. Hope that makes sense. Yes, I think so. I can see how it would be far less work that maintaining something like pygtk. -- Grant -- https://mail.python.org/mailman/listinfo/python-list