Simple exmaple of connecting flask and Pyqt.
Make sure pipenv is install and run pipenv install
to get your env up and running.
Set Flask Env viables, on windows,
set FLASK_APP=flasky.app
set FLASK_ENV=development
Start flask app with flask run
In a separate terminal, run flasky_gui.py
.