Contents
Links
Bases: QPushButton
QPushButton
A QPushButton that can change color.
Initialize the ColoredButton.
text (str) – The text to be displayed.
str
color (QColor, optional) – The color to use for the button.
QColor
parent (QWidget) – The parent widget.
QWidget
**kwargs (dict) – Arbitrary keyword arguments (passed to QPushButton).
dict
Return the color of the button.
The color of the button.
Set the color of the button.
color (QColor, optional) – The new color of the button. If None, the color will be reset to it’s default color.
None