#### PyKDE - Python Bindings for KDE

# class KDualColorButton

Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KDualColorButton
Inherits | QWidget

### enums

- DualColor = {Foreground, Background }

### methods

- KDualColorButton (parent = 0, name = 0, dialogParent = 0)

  returns a KDualColorButton instance

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0
  name | char | 0
  dialogParent | QWidget | 0

- KDualColorButton (fgColor, bgColor, parent = 0, name = 0, dialogParent = 0)

  returns a KDualColorButton instance

  Argument | Type | Default
  --- | --- | ---
  fgColor | QColor |
  bgColor | QColor |
  parent | QWidget | 0
  name | char | 0
  dialogParent | QWidget | 0

- background ()

  returns (QColor)

- bgChanged (c)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  c | QColor |

- current ()

  returns (KDualColorButton.DualColor)

- currentChanged (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | KDualColorButton.DualColor |

- currentColor ()

  returns (QColor)

- dragEnterEvent (ev)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  ev | QDragEnterEvent |

- dropEvent (ev)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  ev | QDropEvent |

- fgChanged (c)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  c | QColor |

- foreground ()

  returns (QColor)

- metrics (fgRect, bgRect)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  fgRect | QRect |
  bgRect | QRect |

- mouseMoveEvent (ev)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  ev | QMouseEvent |

- mousePressEvent (ev)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  ev | QMouseEvent |

- mouseReleaseEvent (ev)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  ev | QMouseEvent |

- paintEvent (ev)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  ev | QPaintEvent |

- setBackground (c)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  c | QColor |

- setCurrent (s)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  s | KDualColorButton.DualColor |

- setCurrentColor (c)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  c | QColor |

- setForeground (c)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  c | QColor |

- sizeHint ()

  returns (QSize)