Experimenting with Go GTK+
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
Noah Petherbridge fb0a73bbfa README update 11 個月前
ui More Pinephone tweaks 1 年前
README.md README update 11 個月前
main.go Initial commit 1 年前
main.py More Pinephone tweaks 1 年前
requirements.txt Python version 1 年前
screenshot.png Python version 1 年前



Some experimentation with GTK+ 3.0 / Glade GUIs in Go and Python, particularly for a mobile app UI with multiple screens.


Some features exercised:

  • A single-window app with multiple screens ("About" button slides to the About screen, Menu->Home button transitions back to main screen, etc.)
  • Dynamically added buttons to a Gtk.Box defined in the Glade file. The buttons click into a "Detail" screen updated with the label of the button clicked.
  • Menu->Open builds a dynamic Open File dialog.
  • Menu->New shows a custom New File dialog defined in the Glade file.

Python Setup

# Install dependencies (Fedora)
sudo dnf install python3-devel kernel-headers glibc-devel gobject-introspection-devel

# Install dependencies (Alpine Linux/postmarketOS)
sudo apk add python3-dev linux-headers musl-dev gobject-introspection-dev

# Python dependencies
pip install -r requirements.txt

# Run it
python main.py