class KPalette

#### 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 = TQString .null)

  returns a KPalette instance
  Argument | Type | Default
  --- | --- | ---
  name | TQString | TQString .null

- KPalette (a0)

  returns a KPalette instance
  Argument | Type | Default
  --- | --- | ---
  a0 | KPalette |

- addColor (newColor, newColorName = TQString .null)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  newColor | TQColor |
  newColorName | TQString | TQString .null

- changeColor (index, newColor, newColorName = TQString .null)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  index | int |
  newColor | TQColor |
  newColorName | TQString | TQString .null

- changeColor (oldColor, newColor, newColorName = TQString .null)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  oldColor | TQColor |
  newColor | TQColor |
  newColorName | TQString | TQString .null

- color (index)

  returns (TQColor)
  Argument | Type | Default
  --- | --- | ---
  index | int |

- colorName (index)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  index | int |

- colorName (color)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  color | TQColor |

- description ()

  returns (TQString)

- editable ()

  returns (Editable)

- findColor (color)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  color | TQColor |

- getPaletteList ()

  returns (TQStringList)
  static

- name ()

  returns (TQString)

- nrColors ()

  returns (int)

- save ()

  returns (bool)

- setDescription (desc)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  desc | TQString |

- setEditable (editable)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  editable | KPalette.Editable |

- setName (name)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  name | TQString |