slint/api/python
2024-03-06 17:22:27 +01:00
..
slint Python: Create a property type wrapper for component instances 2024-03-06 17:20:30 +01:00
tests Python: Add support for assigning colors directly to brushes 2024-03-06 17:22:27 +01:00
.gitignore python: hide native module behind python front-end API 2023-12-21 12:57:35 +01:00
brush.rs Python: Add support for assigning colors directly to brushes 2024-03-06 17:22:27 +01:00
Cargo.toml Python: Add bindings for Brush and Color 2024-03-01 17:17:44 +01:00
errors.rs Python: Add bindings for Brush and Color 2024-03-01 17:17:44 +01:00
image.rs Add support for mapping image properties 2024-02-23 16:05:07 +01:00
interpreter.rs Python: Fix GC support for callbacks 2024-03-04 15:42:37 +01:00
lib.rs Python: Initial support for implementing models in Python 2024-03-05 15:45:52 +01:00
models.rs Python: Initial support for implementing models in Python 2024-03-05 15:45:52 +01:00
noxfile.py Run python tests without capturing stderr/stdout 2023-12-21 12:57:35 +01:00
pyproject.toml Bump version number to 1.5.0 2024-02-20 17:33:11 +00:00
README.md Python: Fix venv setup 2024-01-31 17:04:06 +01:00
timer.rs Add support for timers and run/quit_event_loop 2023-12-21 12:57:35 +01:00
value.rs Python: Add support for assigning colors directly to brushes 2024-03-06 17:22:27 +01:00

Slint-python (Alpha)

Slint is a UI toolkit that supports different programming languages. Slint-python is the integration with Python.

Warning: Alpha Slint-python is still in the very early stages of development: APIs will change and important features are still being developed, the project is overall incomplete.

You can track the overall progress for the Python integration in GitHub at https://github.com/slint-ui/slint/milestone/18 as well as by looking at python-labelled issues at https://github.com/slint-ui/slint/labels/a%3Alanguage-python .

If you want to just play with this, you can try running one of our test cases in a virtual environment:

cd api/python
python -m venv .env
source .env/bin/activate
pip install maturin
maturin develop
python ./tests/test_instance.py

This will bring up the printer demo and a Python callback is invoked when starting a new print job.