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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pyqt_color_button-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56bdc5edc47b2478431b24ef18f30bc64c6b19e8bd4985078652a2b9ee173aba |
|
MD5 | 080aa4915568405eeae272023a0d43c0 |
|
BLAKE2b-256 | 5e96d344acfc5e7518c5f8b4020111daa53122f16cf160a1afe1b1b723b23fcf |