slint/api/python
2023-12-21 12:57:35 +01:00
..
tests Add support for timers and run/quit_event_loop 2023-12-21 12:57:35 +01:00
Cargo.toml Add support for timers and run/quit_event_loop 2023-12-21 12:57:35 +01:00
errors.rs Add support for timers and run/quit_event_loop 2023-12-21 12:57:35 +01:00
interpreter.rs Add show/hide/run to component instance 2023-12-21 12:57:35 +01:00
lib.rs Add support for timers and run/quit_event_loop 2023-12-21 12:57:35 +01:00
noxfile.py Run python tests without capturing stderr/stdout 2023-12-21 12:57:35 +01:00
pyproject.toml Begin wrapping the component compiler 2023-12-21 12:57:35 +01:00
README.md Add a barebones README 2023-12-21 12:57:35 +01:00
timer.rs Add support for timers and run/quit_event_loop 2023-12-21 12:57:35 +01:00
value.rs Convert None to Void correctly 2023-12-21 12:57:35 +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 env .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.