The widget contains a color swatch button and an input field for RGBA values.
This class inherits from Qt’s QtWidgets.QWidget
class.
Methods ¶
__init__(label="", include_alpha=False)
Create and return a new ColorField object.
label
If set to a non-empty string then a label is added to the color field.
include_alpha
If True, then an alpha component is added to the color field.
color()
→ QtGui.QColor
Return the field’s current color.
setColor(color)
Set the field’s current color. color
must be a QtGui.QColor
object.