DictionaryComboBox Class Reference
from PyKDE4.kdeui import *
Inherits: KComboBox → QComboBox → QWidget → QObject
Namespace: Sonnet
Detailed Description
A combo box for selecting the dictionary used for spell checking.
- Since:
- 4.2
Signals | |
dictionaryChanged (QString dictionary) | |
dictionaryNameChanged (QString dictionaryName) | |
Methods | |
__init__ (self, QWidget parent=0) | |
QString | currentDictionary (self) |
QString | currentDictionaryName (self) |
dictionaryChanged (self, QString dictionary) | |
dictionaryNameChanged (self, QString dictionaryName) | |
reloadCombo (self) | |
setCurrentByDictionary (self, QString dictionary) | |
setCurrentByDictionaryName (self, QString dictionaryName) |
Method Documentation
__init__ | ( | self, | ||
QWidget | parent=0 | |||
) |
Constructor
QString currentDictionary | ( | self ) |
Returns the current dictionary, for example "de_CH"
QString currentDictionaryName | ( | self ) |
Returns the current dictionary name, for example "German (Switzerland)"
dictionaryChanged | ( | self, | ||
QString | dictionary | |||
) |
Emitted whenever the current dictionary changes. Either by user intervention or on setCurrentByDictionaryName() or on setCurrentByDictionary(). For example "de_CH".
- Signal syntax:
QObject.connect(source, SIGNAL("dictionaryChanged(const QString&)"), target_slot)
dictionaryNameChanged | ( | self, | ||
QString | dictionaryName | |||
) |
Emitted whenever the current dictionary changes. Either by user intervention or on setCurrentByDictionaryName() or on setCurrentByDictionary(). For example "German (Switzerland)".
- Signal syntax:
QObject.connect(source, SIGNAL("dictionaryNameChanged(const QString&)"), target_slot)
reloadCombo | ( | self ) |
Clears the widget and reloads the dictionaries from Sonnet. Remember to set the dictionary you want selected after calling this function.
setCurrentByDictionary | ( | self, | ||
QString | dictionary | |||
) |
Sets the current dictionary to the given dictionary.
setCurrentByDictionaryName | ( | self, | ||
QString | dictionaryName | |||
) |
Sets the current dictionaryName to the given dictionaryName