Gtk4 Vte Python bindings

I am trying to use the Python bindings for Vte on Fedora42 with GTK4. As per the documentation, I need to use gi.require_version('Vte', '3.91') but that does not seem to be available.

Does anyone know where I can get the package or how I should be importing the module?

Thank you.

Hi,

I don’t know about Fedora, but some distros provide the Vte package as vte2.91-gtk4, some others as vte-3.91. But ultimately it’s the same.

It’s a bit confusing, the gtk3 version is vte2.91, and the same sources are used to build both gtk3 and gtk4 bindings.
For gtk4 the library to link with has a 2.91-gtk4 naming scheme, which can’t be used for introspection data so 3.91 was used instead.

On Python side, use gi.require_version('Vte', '2.91') for gtk3 projects or gi.require_version('Vte', '3.91') for gtk4.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.