Gspell.LanguageChooser

g GObject.GInterface GObject.GInterface Gspell.LanguageChooser Gspell.LanguageChooser GObject.GInterface->Gspell.LanguageChooser

Implementations:

Gspell.LanguageChooserButton, Gspell.LanguageChooserDialog

Methods

get_language ()

get_language_code ()

set_language (language)

set_language_code (language_code)

Virtual Methods

do_get_language_full (default_language)

do_set_language (language)

Properties

Name

Type

Flags

Short Description

language

Gspell.Language

r/w

language-code

str

r/w

Signals

None

Fields

None

Class Details

class Gspell.LanguageChooser
Bases:

GObject.GInterface

Structure:

Gspell.LanguageChooserInterface

get_language()
Returns:

the selected Gspell.Language, or None if no dictionaries are available.

Return type:

Gspell.Language or None

get_language_code()
Returns:

the Gspell.LanguageChooser :language-code. It cannot be None.

Return type:

str

set_language(language)
Parameters:

language (Gspell.Language or None) – a Gspell.Language or None to pick the default language.

Sets the selected language.

set_language_code(language_code)
Parameters:

language_code (str or None) – a language code, or the empty string or None to pick the default language.

do_get_language_full(default_language) virtual
Parameters:

default_language (bool) –

Return type:

Gspell.Language

do_set_language(language) virtual
Parameters:

language (Gspell.Language or None) – a Gspell.Language or None to pick the default language.

Sets the selected language.

Property Details

Gspell.LanguageChooser.props.language
Name:

language

Type:

Gspell.Language

Default Value:

None

Flags:

READABLE, WRITABLE

The selected Gspell.Language.

Gspell.LanguageChooser.props.language_code
Name:

language-code

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

The empty string if the default language was set and the selection hasn’t changed. Or the language code if an explicit language was set or if the selection has changed.