#### PyKDE - Python Bindings for KDE

# class KFontChooser |
Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KFontChooser
Inherits | QWidget

### enums

- FontColumn = {FamilyList, StyleList, SizeList }
- FontColumn = {FamilyList, StyleList, SizeList, CharsetList }
- FontDiff = {FontDiffFamily, FontDiffStyle, FontDiffSize }
- FontListCriteria = {FixedWidthFonts, ScalableFonts, SmoothScalableFonts }

### methods

- KFontChooser (parent = 0, name = "", onlyFixed = 0, fontList = QStringList(), makeFrame = 1, visibleListSize = 8, diff = 0, sizeIsRelativeState = 0)

  returns ,
  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0
  name | string | ""
  onlyFixed | bool | 0
  fontList | QStringList | QStringList()
  makeFrame | bool | 1
  visibleListSize | int | 8
  diff | bool | 0
  sizeIsRelativeState | QButton.ToggleState | 0

- backgroundColor ()

  returns (QColor)

- color ()

  returns (QColor)

- enableColumn (column, state)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  column | int |
  state | bool |

- font ()

  returns (QFont)

- fontDiffFlags ()

  returns (int)

- fontSelected (font)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  font | QFont |

- getFontList (list, fontListCriteria)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  list | QStringList |
  fontListCriteria | bool |

- getXLFD (theFont)

  returns (QString)
  static
  Argument | Type | Default
  --- | --- | ---
  theFont | QFont |

- sampleText ()

  returns (QString)

- setBackgroundColor (col)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  col | QColor |

- setColor (col)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  col | QColor |

- setFont (font, onlyFixed = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  font | QFont |
  onlyFixed | bool | 0

- setSampleBoxVisible (visible)

  returns nothing
  In versions KDE 3.5.0 and above only
  Argument | Type | Default
  --- | --- | ---
  visible | bool |

- setSampleText (text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  text | QString |

- setSizeIsRelative (relative)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  relative | QButton.ToggleState |

- sizeHint ()

  returns (QSize)

- sizeIsRelative ()

  returns (QButton.ToggleState)