class pyqtgraph.ColorButton(parent=None, color=(128, 128, 128))[source]

Bases: QtGui.QPushButton

Button displaying a color and allowing the user to select a new color.

sigColorChanging(self) emitted whenever a new color is picked in the color dialog
sigColorChanged(self) emitted when the selected color is accepted (user clicks OK)
__init__(parent=None, color=(128, 128, 128))[source]
setColor(color, finished=True)[source]

Sets the button’s color and emits both sigColorChanged and sigColorChanging.