Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a gi.repository documentation for python?

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 PyGtk 2.0 Reference Manual

I'm looking for something like PyGtk 2.0 Reference Manual but for Gtk3.

Is there something similar for Python? (I'm not looking for dir(Gtk) or help(Gtk) in the Python console.)

like image 643
Jan Vorcak Avatar asked Dec 07 '11 17:12

Jan Vorcak


People also ask

What is GI repository Python?

gi. repository is the Python module for PyGObject (which stands for Python GObject introspection) which holds Python bindings and support for the GTK+ 3 toolkit and for the GNOME apps. See Projects/PyGObject on the GNOME Wiki. It has nothing to do with GitHub.

Can I use GTK with Python?

GTK is a multi-platform toolkit for creating graphical user interfaces. It is created in C language. GTK has been designed from the ground up to support a range of languages, including Python, Ruby, and Perl.

What is Python GObject?

Project description. PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more. It supports Linux, Windows and macOS and works with Python 3.6+ and PyPy3.


2 Answers

Yes, I found a site that contains documentations for all python bindings of perhaps all GNOME projects that are supported by the python gi.repository module or the Python GObject Introspection module: http://lazka.github.io/pgi-docs/

The one specifically for GTK is:http://lazka.github.io/pgi-docs/Gtk-3.0/index.html

There is also documentation specific to the gi package provided by PyGObject: https://pygobject.readthedocs.io/en/latest/guide/api/api.html

I hope you find these links helpful

like image 115
Yomi Avatar answered Sep 23 '22 14:09

Yomi


I think you're looking for this.

It's a work in progress, but basically is a tutorial for Gtk3 in python. I doesn't really cover any other thing aside from Gtk widgets (so no Glib, for example), but it's still useful to get started.

like image 31
jcollado Avatar answered Sep 24 '22 14:09

jcollado