slint/examples/printerdemo/python
Simon Hausmann f86f4993fa Python: Replace import magic with an auto-loader
As discussed on Reddit, the magic import logic is not very tool friendly and a little too magic perhaps. Instead, this patch introduces an automatic loader (`slint.loader`), which can traverse `sys.path` and lazily load `.slint` files by attribute lookup.

Closes #4856
2024-04-18 16:04:20 +02:00
..
main.py Python: Replace import magic with an auto-loader 2024-04-18 16:04:20 +02:00
Pipfile Python: Add a Python version of the Printer Demo 2024-03-07 10:08:12 +01:00
README.md Link to the Python sources from the python printerdemo README 2024-03-07 12:03:52 +01:00

Intro

This is the Python version of the Slint Printer Demo.

Prerequisites

Setup

pipenv update

Run

pipenv run python main.py

Source Code

The source code of the Python version is in main.py.