Language: Python 3.12, 3.13
OS: Windows 10 , Ubuntu 24.04
I can run PyGObject on Windows 10 with MSVC.
All GTK4 environment was built with gvsbuild and with Visual Studio 2022 community.
Pycairo 1.27 and PyGobject 3.50.0 have been built with Visual Studio 2022 community and python (3.12.6 & 3.13.0rc2)
Method:
Unzip pygobject-3.50.0-cp312-amd64.zip in the folder “site-packages” (python3.12): all necessary files are installed (dlls, typelib, icons, fonts …).
init.py was modified to load binaries path (dll).
For test, use “PyGObject examples.zip” (sample1.py to sample15.py)
see GitHub - Taiko2k/GTK4PythonTutorial: GTK4 + Python tutorial with code examples
import gi # first to load ddl path
import cairo
Philippe DALET
France