GTK4PythonTutorial
GTK4PythonTutorial copied to clipboard
[Documentation] How to install python-gtk4?
Could your guide briefly show how to install it e. g. the pip command?
I only had it for python gtk3 I think. I am so lazy, I could google but I prefer it in the guide if that is possible.
The package you're looking for is called pygobject. There is a pip package https://pypi.org/project/PyGObject/. But if you plan to install to your system (instead of a venv or something) you should use your system package manager to get it. Its easy in Arch Linux: pacman -S python-gobject gtk4 libadwaita. Other distros I'm not sure.