MetadataComments in Source code g-ir-scanner Gir XML file g-ir-compiler Typelib binary file
Comments in Source codehttp://live.gnome.org/GObjectIntrospection/Annotations
Gir XML file
Metadata Comments in Source code g-ir-scanner Gir XML file g-ir-compilerlibgirepository Typelib binary file
python-gobjectPyGTK 2.24.0 has been released. This is a stable release supporting the GTK+2.24 API. New users wishing to develop Python applications using GTK+ arerecommended to use the GObject-Introspection features available inPyGObject. Existing authors of PyGTK applications are also recommended toport their applications to PyGObject to take advantage of new featuresappearing in GTK-3 and beyond.
gtk.c number of lines:128,469
How to use GI?from gi.repository import Gtk;
PEP-0302: New Import Hooks Append finder to sys.meta_path,Use finder.find_module() dynamic to find module.
Objectfrom gi.repository import Gtk - Widget - ContainerInitial all items in Gtk - WindowGet info from ...etc.repository.find_by_name()If item is a object instance, Use a MetaClass“GobjectMeta” to create a class wrapperFinally, you have a Python Class to create Object!