Fcitx.InputMethod

g Fcitx.InputMethod Fcitx.InputMethod GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable Gio.DBusInterface Gio.DBusInterface GObject.GInterface->Gio.DBusInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy Gio.DBusProxy->Fcitx.InputMethod Gio.Initable->Gio.DBusProxy

Subclasses:

None

Methods

Inherited:

Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

new (bus_type, flags, display_number, cancellable)

activate ()

configure ()

configure_addon (addon)

configure_im (imname)

exit ()

get_current_im ()

get_current_state ()

get_current_ui ()

get_im_addon (imname)

get_imlist ()

inactivate ()

reload_config ()

restart ()

set_current_im (imname)

set_imlist (array)

toggle ()

Virtual Methods

Inherited:

Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1)

Properties

Inherited:

Gio.DBusProxy (9)

Name

Type

Flags

Short Description

current-im

str

r/w/c

The current IM

Signals

Inherited:

Gio.DBusProxy (2), GObject.Object (1)

Name

Short Description

imlist-changed

Emit when input method list changed

Fields

Inherited:

Gio.DBusProxy (2), GObject.Object (1)

Name

Type

Access

Description

parent

Gio.DBusProxy

r

Class Details

class Fcitx.InputMethod(**kwargs)
Bases:

Gio.DBusProxy

Abstract:

No

Structure:

Fcitx.InputMethodClass

A Fcitx.InputMethod allow you to control fcitx via DBus.

classmethod new(bus_type, flags, display_number, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

A newly allocated Fcitx.InputMethod.

Return type:

Fcitx.InputMethod

New a #fcitxInputMethod.

activate()

Activate fcitx

configure()

Send configure command to fcitx

configure_addon(addon)
Parameters:

addon (str) – addon name

Send configure addon command to fcitx

configure_im(imname)
Parameters:

imname (str) – im name

Send configure im command to fcitx

exit()

Send exit command to fcitx

get_current_im()
Returns:

get im name

Return type:

str

Get im name

get_current_state()
Returns:

current state, -1 for error

Return type:

int

Get current state

get_current_ui()
Returns:

get ui name

Return type:

str

Get im name

get_im_addon(imname)
Parameters:

imname (str) – imname

Returns:

get addon name

Return type:

str

Get addon name by im

get_imlist()
Returns:

A Fcitx.IMItem List

Return type:

[Fcitx.IMItem]

Get Fcitx all im list

inactivate()

Inactivate fcitx

reload_config()

Send reload config command to fcitx

restart()

Send restart command to fcitx

set_current_im(imname)
Parameters:

imname (str) – set im name

Set im name

set_imlist(array)
Parameters:

array ([Fcitx.IMItem]) – A Fcitx.IMItem List

Set Fcitx all im list

toggle()

toggle fcitx state

Signal Details

Fcitx.InputMethod.signals.imlist_changed(input_method)
Signal Name:

imlist-changed

Flags:

RUN_LAST

Parameters:

input_method (Fcitx.InputMethod) – The object which received the signal

Emit when input method list changed

Property Details

Fcitx.InputMethod.props.current_im
Name:

current-im

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, CONSTRUCT

The current IM.