Fcitx.Kbd

g Fcitx.Kbd Fcitx.Kbd 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.Kbd 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)

get_layout_for_im (imname)

get_layouts ()

set_default_layout (layout, variant)

set_layout_for_im (imname, layout, variant)

Virtual Methods

Inherited:

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

Properties

Inherited:

Gio.DBusProxy (9)

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent

Gio.DBusProxy

r

Class Details

class Fcitx.Kbd(**kwargs)
Bases:

Gio.DBusProxy

Abstract:

No

Structure:

Fcitx.KbdClass

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

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

GLib.Error

Returns:

A newly allocated Fcitx.Kbd.

Return type:

Fcitx.Kbd

New a #fcitxKbd.

get_layout_for_im(imname)
Parameters:

imname (str) – input method name

Returns:

layout:

return’d layout

variant:

return’d variant

Return type:

(layout: str, variant: str)

Get a layout binding with input method

get_layouts()
Returns:

A Fcitx.LayoutItem List

Return type:

[Fcitx.LayoutItem]

Get Fcitx all im list

set_default_layout(layout, variant)
Parameters:
  • layout (str) – layout

  • variant (str) – variant

Set a layout binding with the state when there is no input method

set_layout_for_im(imname, layout, variant)
Parameters:
  • imname (str) – input method name

  • layout (str) – layout

  • variant (str) – variant

Set a layout binding with input method