GithubHelp home page GithubHelp logo

kadir014 / pyqt5-custom-widgets Goto Github PK

View Code? Open in Web Editor NEW
329.0 10.0 55.0 5.71 MB

More useful widgets for PyQt5

License: GNU General Public License v3.0

Python 100.00%
python pyqt5 widgets gui modern ui pyside2

pyqt5-custom-widgets's Introduction

PyQt5 Custom Widgets drawing

More useful and stylish widgets for PyQt5 such as toggle switches, animated buttons, etc..

Table of Contents

Installing

Install using PIP (it might be pip3 or python3 depending on your platform)

pip install pyqt5Custom

or

python -m pip install pyqt5Custom

Also you can also use PySide2 instead of PyQt5 with just litte changes.

Usage

Just import pyqt5Custom and you're ready to go. You can check out Examples, one little example for StyledButton widget:

from pyqt5Custom import StyledButton

...

btn = StyledButton(text="Hello!")
btn.setStyleDict({
    "border-radius" : 20,
    "font-family" : "Helvetica",
    "font-size" : 17
  })

@btn.clicked.connect
def slot():
  print("Quitting!")
  app.exit()

layout.addWidget(btn)

...

Widgets

ToggleSwitch
ToggleSwitch
Documentation
StyledButton
StyledButton
Documentation
ImageBox
ImageBox
Documentation
ColorPicker
ColorPicker
Documentation
DragDropFile
DragDropFile
Documentation
EmbedWindow
EmbedWindow
Documentation
CodeTextEdit
CodeTextEdit
Documentation
TitleBar
TitleBar
Documentation
Spinner
Spinner
Documentation
Toast
Toast
Documentation

References

Dependencies

TODO

  • Better styling and QSS support
  • Rework animations using Qt's animation framework
  • Optimize and complete ColorPicker widget

License

GPL v3 © Kadir Aksoy

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.