Socket
Socket
Sign inDemoInstall

pyqt-color-button

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pyqt-color-button

circle-shaped color button


Maintainers
1

Readme

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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc