Spelling.Provider

g GObject.Object GObject.Object Spelling.Provider Spelling.Provider GObject.Object->Spelling.Provider

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_default ()

get_default_code ()

get_display_name ()

get_language (language)

list_languages ()

supports_language (language)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

display-name

str

r/w/co

Display Name

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Spelling.Provider(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Spelling.ProviderClass

classmethod get_default()
Returns:

an Spelling.Provider

Return type:

Spelling.Provider

Gets the default spell provider.

get_default_code()
Return type:

str

get_display_name()
Return type:

str

get_language(language)
Parameters:

language (str) – the language to load such as en_US.

Returns:

an Spelling.Provider or None

Return type:

Spelling.Language or None

Gets an Spelling.Language for the requested language, or None if the language is not supported.

list_languages()
Returns:

an array of Spelling.LanguageInfo.

Return type:

[Spelling.LanguageInfo]

Gets a list of the languages supported by the provider.

supports_language(language)
Parameters:

language (str) – the language such as en_US.

Returns:

True if language is supported, otherwise False

Return type:

bool

Checks of language is supported by the provider.

Property Details

Spelling.Provider.props.display_name
Name:

display-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Display Name