colorbutton

Provide a custom widget based on QPushButton for the selection of colors

class openlp.core.ui.lib.colorbutton.ColorButton(parent=None)[source]

Bases: PyQt5.QtWidgets.QPushButton

Subclasses QPushbutton to create a “Color Chooser” button

change_color(color)[source]

Sets the _color variable and the background color.

Parameters:color – String representation of a hexidecimal color
color

Property method to return the color variable

Returns:String representation of a hexidecimal color
colorChanged
on_clicked()[source]

Handle the PushButton clicked signal, showing the ColorDialog and validating the input