This repository provides a Model View Controller (MVC) design in using PyQt.
model-view-controller-template │ README.md │ app.py │ └─── model │ │ model.py │ └─── view │ │ view.py │ │ main_view.ui │ │ main_view.py └─── controller │ controller.py
- Install anaconda.
- step up python environment
conda create --name mvc python=3.7
- activate environment
conda activate mvc or source activate mvc
Install required python libraries
pip install -r requirement.txt
Run the following command on terminal
python app.py
The ui is designed using qt designer
and saved in main_view.ui
in view directory. You can make changes to main_view.ui
and convert it to a python file using the following command.
pyuic5 view/main_view.ui -o view/main_view_ui.py
Run the following command on terminal
pyinstaller --noconsole -n mvc_application app.py
This will create a dist
folder with an mvc_application
directory inside.