Is there a gi.repository documentation for python?

后端 未结 5 1018
不思量自难忘°
不思量自难忘° 2021-02-01 14:43

I\'m looking for a gi.repository module documentation and I can\'t find anything on the internet. All I found is documentation of new Gtk3 libraries for C, or old P

5条回答
  •  失恋的感觉
    2021-02-01 15:31

    Generally speaking, you should be able to use the C library documentation as your main reference. The naming conversions between the C functions and their Python versions are quite consistent, so it's straight-forward in most cases. I would not expect to see Python-specific Gtk-via-introspection documentation.

    I occasionally had trouble finding, for example, constants at first. In this case, using iPython's tab-completion to search the Gtk, Gdk and Gobject namespaces was invaluable. There are a few rare cases in which introspection is impossible and, at least in the last version I was working with, they hadn't been manually implemented (can't remember exactly which functions), so there's not much you can do with those; I had to dig into the gi.repository source to verify these cases.

提交回复
热议问题