Subgroup: other
Class: QgsGplColorScheme¶
-
class
qgis.core.
QgsGplColorScheme
¶ Bases:
qgis._core.QgsColorScheme
A color scheme which stores its colors in a gpl palette file.
New in version 2.5: Methods
clone
Clones a color scheme fetchColors
flags
Returns the current flags for the color scheme. gplFilePath
Returns the file path for the associated gpl palette file isEditable
Returns whether the color scheme is editable schemeName
Gets the name for the color scheme setColors
Attributes
ShowInAllContexts
ShowInColorButtonMenu
ShowInColorDialog
-
fetchColors
(self, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → object¶
-
gplFilePath
(self) → str¶ Returns the file path for the associated gpl palette file
Returns: gpl file path
-
setColors
(self, colors: object, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → bool¶
-