colorbutton¶
Provide a custom widget based on QPushButton for the selection of colors
Bases:
PyQt5.QtWidgets.QPushButton
Subclasses QPushbutton to create a “Color Chooser” button
Sets the _color variable and the background color.
Parameters: color – String representation of a hexidecimal color
Property method to return the color variable
Returns: String representation of a hexidecimal color
Handle the PushButton clicked signal, showing the ColorDialog and validating the input