Sonnet.ConfigWidget

KDE 4.2 PyKDE API Reference

- KDE's Python API

# ConfigWidget Class Reference

`from PyKDE4.kdeui import *`

Inherits: QWidget → QObject
Namespace: Sonnet

## Detailed Description

The sonnet ConfigWidget

## Signals
| configChanged ()
## Methods
| __init__ (self, KConfig config, QWidget parent)
bool | backgroundCheckingButtonShown (self)
| configChanged (self)
QString | language (self)
| save (self)
| setBackgroundCheckingButtonShown (self, bool a0)
| setLanguage (self, QString language)
| slotChanged (self)
| slotDefault (self)

## Method Documentation

__init__ | ( | self, |
|  | KConfig | config,
|  | QWidget | parent
| ) |  |  |

bool backgroundCheckingButtonShown | ( |  | self ) |

configChanged | ( |  | self ) |

Signal sends when config was changed

Since:
  4.1

Signal syntax:
  `QObject.connect(source, SIGNAL("configChanged()"), target_slot)`

QString language | ( |  | self ) |

Get the currently selected language for spell checking. Returns an empty string if kdelibs was built without any spellchecking plugins.

Returns:
  the language currently selected in the language combobox

Since:
  4.1

save | ( |  | self ) |

setBackgroundCheckingButtonShown | ( | self, |
|  | bool | a0
| ) |  |  |

setLanguage | ( | self, |
|  | QString | language
| ) |  |  |

Sets the language/dictionary that will be selected by default in this config widget. This overrides the setting in the config file.

Parameters:

  | language | the language which will be selected by default.

Since:
  4.1

slotChanged | ( |  | self ) |

slotDefault | ( |  | self ) |