Execute pip3 install PyGObject to build and install PyGObject.Execute pip3 install pycairo to build and install Pycairo.Execute sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0to install the build dependencies and GTK.Open a terminal and enter your virtual environment.Change the directory to where your hello.py script can be found (e.g.Execute sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0.Ubuntu / Debian¶ Installing the system provided PyGObject: In the mingw32 terminal execute python3 hello.py - a window should appear.Copy the hello.py script you created to C:msys64home.To test that GTK 3 is working you can run gtk3-demo.Run C:msys64mingw64.exe - a terminal window should pop up.Follow the instructions on the page for setting up the basic environment.Go to and download the x86_64 installer.After running the example application have a look at the “Python GTK 3Tutorial” for more exampleson how to create GTK apps and the “PyGObject API Reference” for API documentation for all supportedlibraries.
0 Comments
Leave a Reply. |