Taiko2k / GTK4PythonTutorial

GTK4 + Python tutorial with code examples
446 stars 33 forks source link

[Documentation] How to install python-gtk4? #7

Open rubyFeedback opened 2 years ago

rubyFeedback commented 2 years ago

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.

Taiko2k commented 2 years ago

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.