Class: QgsGplColorScheme

class qgis.core.QgsGplColorScheme

Bases: qgis._core.QgsColorScheme

Constructor for QgsGplColorScheme.

QgsGplColorScheme(QgsGplColorScheme)

A color scheme which stores its colors in a gpl palette file.

New in version 2.5: Enums

Methods

fetchColors

gplFilePath

Returns the file path for the associated gpl palette file

setColors

Signals

Attributes

fetchColors(self, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → List[Tuple[QColor, str]]
gplFilePath(self) → str

Returns the file path for the associated gpl palette file

Returns

gpl file path

setColors(self, colors: Iterable[Tuple[Union[QColor, Qt.GlobalColor, QGradient], str]], context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → bool