A template for building a libadwaita and Gtk4 application in python
- A flexible app using
- Adw.Application
- Adw.ApplicationWindow, Adw.ToolbarView , Adw.Breakpoint
- Adw.Stack and Adw.ViewSwitcher
- ui is build using blueprint
- use Gtk.Template to connect the ui with the python class
- resources stored in GRessouce (.ui & style.css)
- settings stored in GSettings (win dimentions is saved at close)
- using meson to build/install
- easy to transform into a new project check customize.md for details
run this script to build and run the application
./local.sh
Build as flatpak
org.gnome.Sdk/*/48 runtime must be installed
flatpak-builder --force-clean .flatpak/repo build-aux/flatpak/org.mydomain.Example.yml
Run the flatpak
flatpak-builder --run .flatpak/repo build-aux/flatpak/org.mydomain.Example.yml exampl
- gtk4-devel >= 4.5
- libadwaita-devel >= 1.6
- blueprint-compiler >= 0.16
- python3-gobject
- python3 >= 3.10
- meson
sudo dnf install gtk4-devel libadwaita-devel blueprint-compiler meson