Project for COMP 20073
Prototype software for managing PUP student loans.
- For third-party modules, see
requirements.txt - Qt Designer for editing
.uifiles
- Open terminal in any directory you like
- Clone this repository
C:\Users\YourUsername\...> git clone https://github.com/dattlab/polytech_loan.git - Go to folder
polytech_loanC:\Users\YourUsername\...> cd polytech_loan C:\Users\YourUsername\...\polytech_loan> - (Recommended) Create virtual environment:
C:\Users\YourUsername\...\polytech_loan> python -m venv venv
Activate the virtual environment:
C:\Users\YourUsername\...\polytech_loan> .\venv\Scripts\activate
- You should see a
(venv)in the prompt:(venv) C:\Users\YourUsername\...\polytech_loan> - Install all the required third-party modules:
(venv) C:\Users\YourUsername\...\polytech_loan> pip install -r requirements.txt - You can now run the main file
polytech_loan.py
- You can edit the
.uifiles inside theuidirectory with Qt Designer located atvenv\Lib\site-packages\qt5_applications\Qt\bin\designer.exe. - To make
.uifiles as.pyfiles:(venv) C:\Users\YourUsername\...\polytech_loan> pyuic5 .\ui\xxxx.ui -o .\ui\xxxx_ui.py - The
.qrcfiles inresourcesfolder must also be in.py:(venv) C:\Users\YourUsername\...\polytech_loan> pyrcc5 .\ui\resources\xxxx.qrc -o .\ui\resources\xxxx_rc.py
Checkout the build branch, install pyinstaller package
pip install pyinstallerand run
pyinstaller polytech_loan.specThe binary file will be stored in dist directory.