PyKDE - Python Bindings for KDE
class KPalette
Table of contents
Modules
tdecore Classes
All Classes
Module
tdecore
Class
KPalette
Inherits
enums
Editable
= {Yes, No, Ask }
methods
KPalette
(name = QString .null)
returns
a KPalette instance
Argument
Type
Default
name
QString
QString .null
KPalette
(a0)
returns
a KPalette instance
Argument
Type
Default
a0
KPalette
addColor
(newColor, newColorName = QString .null)
returns
(int)
Argument
Type
Default
newColor
QColor
newColorName
QString
QString .null
changeColor
(index, newColor, newColorName = QString .null)
returns
(int)
Argument
Type
Default
index
int
newColor
QColor
newColorName
QString
QString .null
changeColor
(oldColor, newColor, newColorName = QString .null)
returns
(int)
Argument
Type
Default
oldColor
QColor
newColor
QColor
newColorName
QString
QString .null
color
(index)
returns
(QColor)
Argument
Type
Default
index
int
colorName
(index)
returns
(QString)
Argument
Type
Default
index
int
colorName
(color)
returns
(QString)
Argument
Type
Default
color
QColor
description
()
returns
(QString)
editable
()
returns
(Editable)
findColor
(color)
returns
(int)
Argument
Type
Default
color
QColor
getPaletteList
()
returns
(QStringList)
static
name
()
returns
(QString)
nrColors
()
returns
(int)
save
()
returns
(bool)
setDescription
(desc)
returns
nothing
Argument
Type
Default
desc
QString
setEditable
(editable)
returns
nothing
Argument
Type
Default
editable
KPalette.Editable
setName
(name)
returns
nothing
Argument
Type
Default
name
QString