#### PyKDE - Python Bindings for KDE

# class KHTMLSettings |
Table of contents
Modules
khtml Classes
All Classes

Module | khtml
Class | KHTMLSettings
Inherits |

### enums

- KAnimationAdvice = {KAnimationDisabled, KAnimationLoopOnce, KAnimationEnabled }
- KJSWindowFocusPolicy = {KJSWindowFocusAllow, KJSWindowFocusIgnore }
- KJSWindowMovePolicy = {KJSWindowMoveAllow, KJSWindowMoveIgnore }
- KJSWindowOpenPolicy = {KJSWindowOpenAllow, KJSWindowOpenAsk, KJSWindowOpenDeny, KJSWindowOpenSmart }
- KJSWindowResizePolicy = {KJSWindowResizeAllow, KJSWindowResizeIgnore }
- KJSWindowStatusPolicy = {KJSWindowStatusAllow, KJSWindowStatusIgnore }
- KJavaScriptAdvice = {KJavaScriptDunno, KJavaScriptAccept, KJavaScriptReject }

### methods

- KHTMLSettings ()

  returns a KHTMLSettings instance

- KHTMLSettings (other)

  returns a KHTMLSettings instance
  Argument | Type | Default
  --- | --- | ---
  other | KHTMLSettings |

- accessKeysEnabled ()

  returns (bool)
  In versions KDE 3.5.0 and above only

- addAdFilter (url)

  returns nothing
  In versions KDE 3.5.0 and above only
  Argument | Type | Default
  --- | --- | ---
  url | QString |

- adviceToStr (_advice)

  returns (char)
  static
  Argument | Type | Default
  --- | --- | ---
  _advice | KHTMLSettings.KJavaScriptAdvice |

- allowTabulation ()

  returns (bool)
  In versions KDE 3.4.0 and above only

- autoLoadImages ()

  returns (bool)

- autoSpellCheck ()

  returns (bool)
  In versions KDE 3.4.0 and above only

- availableFamilies ()

  returns (QString)
  static

- baseColor ()

  returns (QColor)
  In versions KDE 3.4.0 and above only

- changeCursor ()

  returns (bool)

- cursiveFontName ()

  returns (QString)

- encoding ()

  returns (QString)

- fallbackAccessKeysAssignments ()

  returns (QValueList>)

- fallbackAccessKeysAssignments ()

  returns (AssignList)
  In versions KDE 3.1.1 and above, but less than KDE 3.5.2

- fantasyFontName ()

  returns (QString)

- fixedFontName ()

  returns (QString)

- followSystemColors ()

  returns (bool)
  In versions KDE 3.4.0 and above only

- hoverLink ()

  returns (bool)

- init ()

  returns nothing

- init (config, reset = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  reset | bool | 1

- isAdFilterEnabled ()

  returns (bool)
  In versions KDE 3.5.0 and above only

- isAdFiltered (url)

  returns (bool)
  In versions KDE 3.5.0 and above only
  Argument | Type | Default
  --- | --- | ---
  url | QString |

- isAutoDelayedActionsEnabled ()

  returns (bool)
  In versions KDE 3.1.1 and above only

- isBackRightClickEnabled ()

  returns (bool)
  In versions KDE 3.1.0 and above only

- isFormCompletionEnabled ()

  returns (bool)

- isHideAdsEnabled ()

  returns (bool)
  In versions KDE 3.5.0 and above only

- isJavaEnabled (hostname = QString .null)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- isJavaScriptDebugEnabled (hostname = QString .null)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- isJavaScriptEnabled (hostname = QString .null)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- isJavaScriptErrorReportingEnabled (hostname = QString .null)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- isOpenMiddleClickEnabled ()

  returns (bool)
  In versions KDE 3.3.0 and above only

- isPluginsEnabled (hostname = QString .null)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- jsErrorsEnabled ()

  returns (bool)
  In versions KDE 3.2.0 and above only

- jsPopupBlockerPassivePopup ()

  returns (bool)
  In versions KDE 3.5.0 and above only

- linkColor ()

  returns (QColor)

- maxFormCompletionItems ()

  returns (int)

- mediumFontSize ()

  returns (int)

- minFontSize ()

  returns (int)

- readDomainSettings (config, reset, global, pd_settings)

  Not Implemented

- sansSerifFontName ()

  returns (QString)

- serifFontName ()

  returns (QString)

- setFixedFontName (n)

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

- setJSErrorsEnabled (enabled)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  enabled | bool |

- setJSPopupBlockerPassivePopup (enabled)

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

- setStdFontName (n)

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

- settingsToCSS ()

  returns (QString)

- showAnimations ()

  returns (KHTMLSettings.KAnimationAdvice)

- splitDomainAdvice (configStr, domain)

  Not Implemented

- stdFontName ()

  returns (QString)

- strToAdvice (_str)

  returns (KJavaScriptAdvice)
  static
  Argument | Type | Default
  --- | --- | ---
  _str | QString |

- textColor ()

  returns (QColor)

- underlineLink ()

  returns (bool)

- unfinishedImageFrame ()

  returns (bool)
  In versions KDE 3.4.0 and above only

- userStyleSheet ()

  returns (QString)

- vLinkColor ()

  returns (QColor)

- windowFocusPolicy (hostname = QString .null)

  returns (KHTMLSettings.KJSWindowFocusPolicy)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- windowMovePolicy (hostname = QString .null)

  returns (KHTMLSettings.KJSWindowMovePolicy)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- windowOpenPolicy (hostname = QString .null)

  returns (KHTMLSettings.KJSWindowOpenPolicy)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- windowResizePolicy (hostname = QString .null)

  returns (KHTMLSettings.KJSWindowResizePolicy)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null

- windowStatusPolicy (hostname = QString .null)

  returns (KHTMLSettings.KJSWindowStatusPolicy)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString .null