Class: QgsGplColorScheme¶
-
class
qgis.core.
QgsGplColorScheme
¶ Bases:
QgsColorScheme
Constructor for QgsGplColorScheme.
QgsGplColorScheme(
QgsGplColorScheme
)A color scheme which stores its colors in a gpl palette file.
Methods
- param context
Returns the file path for the associated gpl palette file
- param colors
-
fetchColors
(self, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → object¶ - Parameters
context (str = '') –
baseColor (Union[QColor) –
- Return type
object
-
gplFilePath
(self) → str¶ Returns the file path for the associated gpl palette file
- Return type
str
- Returns
gpl file path
-
setColors
(self, colors: object, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → bool¶ - Parameters
colors (object) –
context (str = '') –
baseColor (Union[QColor) –
- Return type
bool