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