Skip to main content

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

Release files for pyqt-color-button 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyqt-color-button 0.0.1
File Size Uploaded
pyqt-color-button-0.0.1.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyqt-color-button 0.0.1
File Interpreter ABI Platform
pyqt_color_button-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / pyqt-color-button-0.0.1.tar.gz

Download URL pyqt-color-button-0.0.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
011366f38fa5d5fc31cbbecde6893f8a3a81fe991b77f52b2f216b089a2a7ae7
BLAKE2b-256 checksum
How to use checksums
0fe9635035db8bfa952892a447c7b0330d2c660c3af7558165da27caa5d5fb07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release files / pyqt_color_button-0.0.1-py3-none-any.whl

Download URL pyqt_color_button-0.0.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56bdc5edc47b2478431b24ef18f30bc64c6b19e8bd4985078652a2b9ee173aba
BLAKE2b-256 checksum
How to use checksums
5e96d344acfc5e7518c5f8b4020111daa53122f16cf160a1afe1b1b723b23fcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page