pgi
pgi copied to clipboard
[Unmaintained: Use PyGObject instead] GTK+ / GObject Introspection Bindings for PyPy.
Minimal repro: ``` from pgi.repository import Gtk ls = Gtk.ListStore(str) ls.append(["Test"]) ```
I'm trying to use pgi with [libvips](https://github.com/jcupitt/libvips), but it fails to load the overrides with the following error: ``` Traceback (most recent call last): File "", line 1, in File...
When I run `Gdk.Display.get_default()` I get a `TypeError: metaclass conflict`: ``` >>> from pgi.repository import Gdk >>> Gdk.Display.get_default() Traceback (most recent call last): File "", line 1, in File "",...
I've been unable to figure out how to register custom signals under pgi. I found `__sigs__` and looked at the class that's used to represent one, but I couldn't figure...
Looks like there are some differences here: gi.repository ``` python >>> from gi.repository import Pango >>> Pango.FontDescription("Helvetica-Bold") ``` pgi ``` python >>> import pgi >>> pgi.install_as_gi() >>> from gi.repository import...
gi ``` python from gi.repository import GObject GObject.type_register ``` pgi ``` python import pgi pgi.install_as_gi() from gi.repository import GObject GObject.type_register --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in () ---->...
The GExiv2 metadata library can read data from a file or from image data already in memory. The latter method is very slow when using pgi. The following test program...
When using PyGObject `GLib.Bytes.get_data()` returns a Python 2 `str` or Python 3 `bytes` object (which is easily decoded to a `str`). With pgi I get a Python list of `pgi.clib.gir.gitypelib.LP_c_ubyte`...
They currently get properties/signal handling but shouldn't. This results in the following warnings in pgi-docgen (it should raise instead): ``` (python:25423): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type...
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) [/root/deepstream_python_apps/notebooks/deepstream_launchpad.ipynb](https://vscode-remote+ssh-002dremote-002b103-002e119-002e171-002e19.vscode-resource.vscode-cdn.net/root/deepstream_python_apps/notebooks/deepstream_launchpad.ipynb) Cell 27 line 1 [12](vscode-notebook-cell://ssh-remote%2B103.119.171.19/root/deepstream_python_apps/notebooks/deepstream_launchpad.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=11) sys.exit(1) # Exit the script if streammux creation failed [14](vscode-notebook-cell://ssh-remote%2B103.119.171.19/root/deepstream_python_apps/notebooks/deepstream_launchpad.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=13) # Set streammux properties ---> [15](vscode-notebook-cell://ssh-remote%2B103.119.171.19/root/deepstream_python_apps/notebooks/deepstream_launchpad.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=14) streammux.set_property('width',...