GithubHelp home page GithubHelp logo

abdullahsumbal / mvc_template Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 19 KB

Template for Model View Controller (MVC) using pyqt5

Python 100.00%
mvc mvc-framework mvc-application model-view-controller pyqt5 python mvc-architecture mvc-template pyinstaller

mvc_template's Introduction

Template for Model View Controller (MVC) in Python.

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

Getting Started

Prerequisites

  1. Install anaconda.
  2. step up python environment
    conda create --name mvc python=3.7
    
  3. activate environment
    conda activate mvc
    or
    source activate mvc
    

Installation

Install required python libraries

pip install -r requirement.txt

Run Application (dev)

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

Deploy Application

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.

mvc_template's People

Contributors

abdullahsumbal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rickywong86

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.