- Following along with Tech with Time PyQt tutorial
- Download Qt python interface:
pip install pyqt5 - Download Qt Designer app:
pip install pyqt5-tools - To open designer (it's in your virtual environment folder)
venv_name/Scripts/pyqt5-tools.exe designer - After designing your gui, file -> save as
cytokine_array.ui(name it whatever you want) and save file in your project folder - Export gui to python code: pyuic5 -x cyokine_array.ui -o cytokine_array.py
- Run gui with:
python cytokine_array.py
Bonus: Make it a standalone application with pyinstaller
pip install pyinstallerpyinstaller cytokine_array.py- When complete there will be a new folder called dist created
- in dist find
dist/cytokine_array/cytokine_array.exe(or similarly named executable) then create a shortcut to and drag that short cut to your desktop (or any where else you like)