Skip to main content

circle-shaped color button

Project description

pyqt-color-button

Circle-shaped color button

Requirements

  • PyQt5 >= 5.8

Setup

python -m pip install pyqt-color-button

Class and Method Overview

Constructor - ColorButton(size=20, r=255, g=255, b=255)

You can make a new instance of ColorButton like below.

btn = ColorButton(size=40, r=0, g=0, b=0)

Size argument is value(px) of border-radius, color is value of background-color.

With setColor(rgb: tuple) or setColor(rgb: QColor), you can set the color after you made a new instance.

getColor() let you get the current color of the box.

There is colorChanged(QColor) signal to detect the color of box changed.

Preview

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt-color-button-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

pyqt_color_button-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pyqt-color-button-0.0.1.tar.gz.

File metadata

  • Download URL: pyqt-color-button-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 CPython/3.7.6

File hashes

Hashes for pyqt-color-button-0.0.1.tar.gz
Algorithm Hash digest
SHA256 011366f38fa5d5fc31cbbecde6893f8a3a81fe991b77f52b2f216b089a2a7ae7
MD5 fc1ebc239cc5c7d234707717ba9b831a
BLAKE2b-256 0fe9635035db8bfa952892a447c7b0330d2c660c3af7558165da27caa5d5fb07

See more details on using hashes here.

File details

Details for the file pyqt_color_button-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyqt_color_button-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56bdc5edc47b2478431b24ef18f30bc64c6b19e8bd4985078652a2b9ee173aba
MD5 080aa4915568405eeae272023a0d43c0
BLAKE2b-256 5e96d344acfc5e7518c5f8b4020111daa53122f16cf160a1afe1b1b723b23fcf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page