Skip to content

timlau/adw_template_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyhton Libadwaita & Gtk4 Template application

A template for building a libadwaita and Gtk4 application in python

  • A flexible app using
    • Adw.Application
    • Adw.ApplicationWindow
    • Adw.Leaflet
    • Adw.Stack and friends
  • 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

build and run

run this script to build and run the application

./local.sh

flatpak build & run

Build as flatpak

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

Requirements

  • gtk4-devel >= 4.5
  • libadwaita-devel >= 1.2
  • blueprint-compiler
  • python3-gobject
  • python3 >= 3.10
  • meson

Fedora 37

sudo dnf install gtk4-devel libadwaita-devel blueprint-compiler meson

About

A template for build an libadwaita application in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published