Coder Social home page Coder Social logo

namuan / pyqt-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 1.81 MB

Boilerplate project for writing desktop applications in Python and PyQt5

License: MIT License

Makefile 0.04% Python 99.66% Shell 0.04% CSS 0.25%
pyqt5 pyqt5-desktop-application boilerplate-template python

pyqt-boilerplate's Introduction

PyQt Boilerplate

Features:

๐Ÿ‘‰ Runnable application

๐Ÿ‘‰ Application configuration using .ini files

๐Ÿ‘‰ Separate requirements file for development and build

๐Ÿ‘‰ Manage UI files and resources from QtDesigner

๐Ÿ‘‰ Resource files and application icon

๐Ÿ‘‰ Make file to set up virtualenv, run and test application

๐Ÿ‘‰ Make command to generate code from QtDesigner generated .ui files

๐Ÿ‘‰ Make command to generate and compress resource files

๐Ÿ‘‰ Script to generate icons from SVG file (uses Inkscape)

๐Ÿ‘‰ Stylesheets for switching between Light/Dark modes

๐Ÿ‘‰ Rotating log file

๐Ÿ‘‰ Application data persistence support using Sqlite database

Light/Dark Themes

Themes

Development

You'll need Python3.6+ to run this application.

The following make commands can be used for setting up virtual env and running the application.

Setup a new virtual env in venv folder and install all the dependencies listed in requirements/dev.txt

$ make setup

Run application

$ make run

Other useful commands

$ make help

 Choose a command run in pyqt-boilerplate:

black                          Runs black for code formatting
clean-pyc                      remove Python file artifacts
clean                          Clean package
icns                           Generates icon files from svg
lint                           Runs Flake8 for linting
release                        Step to prepare a new release
res                            Generates and compresses resource file
run                            Runs the application
setup                          Setup virtual environment and install dependencies
uic                            Converts ui files to python
venv                           Re-initiates virtualenv

Application Icon

An example application icon is available in resources/icons/app.svg. Run the following command to generate .ico and .icns files. Note that it requires Inkspace to be available on the local machine. Please check the following script to change location of Inkscape.

$ ./mk-icns.sh

Credits

๐Ÿ™ https://github.com/gmarull/pyside2-boilerplate

๐Ÿ™ https://github.com/zenorocha/dracula-theme

๐Ÿ™ https://icons8.com

pyqt-boilerplate's People

Contributors

namuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.