glade-test/README.md

32 lines
970 B
Markdown
Raw Normal View History

2020-07-07 03:58:19 +00:00
# glade-test
Some experimentation with GTK+ 3.0 / Glade GUIs in Go and Python, particularly
for a mobile app UI with multiple screens.
![Screenshot](screenshot.png)
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
```bash
# Install dependencies (Fedora)
2020-10-29 02:01:37 +00:00
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
2020-07-07 03:58:19 +00:00
# Python dependencies
pip install -r requirements.txt
# Run it
python main.py
```