Welcome to PythonDMCGUI
Custom Python + Kivy GUI to control a Galil machine using DMC.
Requirements
- GCLib: https://www.galil.com/sw/pub/all/rn/gclib.html
- Conda (optional): https://www.anaconda.com/download/success
- Kivy: https://kivy.org/doc/stable/gettingstarted/installation.html
- Python 3.10+
Setup
- conda env create -f environment.yml (run in repo root)
- conda activate dmc
- Install GCLib (x64) and ensure PATH is set
Run
python -m dmccodegui.main
Installation to RasPi
# Install system dependencies
sudo apt update && sudo apt install -y python3-pip python3-dev libgl1-mesa-dev
# 1. Install the GUI package
pip3 install dmccodegui
# 2. Install Galil driver separately
pip3 install https://www.galil.com/sw/pub/python/gclib-1.0.0-py3-none-any.whl
Run
# After pip installation
dmccodegui
# Or alternatively
python -m dmccodegui.main
## Architecture (Developer Guide)
Layered structure keeps UI responsive and testable:
- `src/dmccodegui/main.py`
- Loads KV files, builds root, injects `GalilController` and `MachineState` into all screens
- Hooks controller logging to popup alerts and the message ticker
- `src/dmccodegui/controller.py`
- `GalilController` API with functions to interface w controller
- `src/dmccodegui/app_state.py`
- `MachineState` dataclass with pub/sub and a rotating `messages` list for alerts
- `src/dmccodegui/utils/jobs.py`
- Single worker thread + interval scheduler
- `src/dmccodegui/screens/`
- This directory holds python logic for each screen
- `src/dmccodegui/ui/`
- `base.kv`: root layout; custom toolbar; global message ticker row
- `setup.kv`, `rest.kv`, `start.kv`, `arrays.kv`: per-screen layouts
- `edges.kv`: KV-only subclasses `EdgePointBScreen`/`EdgePointCScreen` using different arrays
- `theme.kv`: shared styles
## Tests
```bash
pytest -q
See tests/test_controller.py and tests/test_arrays.py for controller behavior and array round-trips using dummy drivers.
Build for PyPI
pip install build twine
python -m build
twine upload dist/*
Links
- DMC Code and Info: https://www.galil.com/learn/sample-dmc-code
- GCLib documentation: https://www.galil.com/sw/pub/all/doc/gclib/html/examples.html
Metadata
Release files for dmccodegui 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dmccodegui-0.1.0.tar.gz | 6.1 MB | Without provenance | Details for dmccodegui-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dmccodegui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dmccodegui-0.1.0-py3-none-any.whl |
Total release size: 12.1 MB
Release files / dmccodegui-0.1.0.tar.gz
| Download URL | dmccodegui-0.1.0.tar.gz |
|---|---|
| Size | 6.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
288a45c2fcaf74a9e2c290c49ed1774317643f0287f68da68d7144413d114ab1
|
|
BLAKE2b-256 checksum How to use checksums |
229ae2e3e0dcfc1f3040cd03c79b662eaa611fc232af281ecc79cc768718c978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / dmccodegui-0.1.0-py3-none-any.whl
| Download URL | dmccodegui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15b21a425b0f5e366feb554be26186e0d43e40a95ae9cdb454b3a3314a4cb29e
|
|
BLAKE2b-256 checksum How to use checksums |
4257fd9eb17935f15c5f708232aa38784ddf3db5f3e4702d7005e65b547bc371
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for dmccodegui 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.