This is the Python version of the Slint Printer Demo.
uv run main.py
The source code of the Python version is in main.py.