Subgroup: User
Class: QgsUserColorScheme¶
-
class
qgis.core.
QgsUserColorScheme
¶ Bases:
qgis._core.QgsGplColorScheme
A color scheme which stores its colors in a gpl palette file within the “palettes” subfolder off the user’s QGIS settings folder.
New in version 2.5: Methods
clone
erase
Erases the associated gpl palette file from the users “palettes” folder fetchColors
flags
gplFilePath
isEditable
schemeName
setColors
setName
Sets the name for the scheme setShowSchemeInMenu
Sets whether a this scheme should be shown in color button menus. Attributes
ShowInAllContexts
ShowInColorButtonMenu
ShowInColorDialog
-
clone
(self) → QgsUserColorScheme¶
-
erase
(self) → bool¶ Erases the associated gpl palette file from the users “palettes” folder
Returns: true if erase was successful
-
flags
(self) → QgsColorScheme.SchemeFlags¶
-
gplFilePath
(self) → str¶
-
isEditable
(self) → bool¶
-
schemeName
(self) → str¶
-
setName
(self, name: str)¶ Sets the name for the scheme
Parameters: name – new name
-
setShowSchemeInMenu
(self, show: bool)¶ Sets whether a this scheme should be shown in color button menus.
Parameters: show – set to true to show in color button menus, or false to hide from menus New in version 3.0.
-