class KFontChooser

#### PyKDE - Python Bindings for KDE

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

Module | kdeui
Class | KFontChooser
Inherits | QWidget

### enums

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

### 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

- 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)