Gtk.IMMulticontext

g GObject.Object GObject.Object Gtk.IMContext Gtk.IMContext GObject.Object->Gtk.IMContext Gtk.IMMulticontext Gtk.IMMulticontext Gtk.IMContext->Gtk.IMMulticontext

Subclasses:

None

Methods

Inherited:

Gtk.IMContext (14), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_context_id ()

set_context_id (context_id)

Virtual Methods

Inherited:

Gtk.IMContext (19), GObject.Object (7)

Properties

Inherited:

Gtk.IMContext (2)

Signals

Inherited:

Gtk.IMContext (6), GObject.Object (1)

Fields

Inherited:

Gtk.IMContext (6), GObject.Object (1)

Name

Type

Access

Description

object

Gtk.IMContext

r

Class Details

class Gtk.IMMulticontext(**kwargs)
Bases:

Gtk.IMContext

Abstract:

No

Structure:

Gtk.IMMulticontextClass

GtkIMMulticontext is an input method context supporting multiple, switchable input methods.

Text widgets such as GtkText or GtkTextView use a GtkIMMultiContext to implement their im-module property for switching between different input methods.

classmethod new()[source]
Returns:

a new GtkIMMulticontext.

Return type:

Gtk.IMContext

Creates a new GtkIMMulticontext.

get_context_id()[source]
Returns:

the id of the currently active delegate

Return type:

str

Gets the id of the currently active delegate of the self.

set_context_id(context_id)[source]
Parameters:

context_id (str or None) – the id to use

Sets the context id for self.

This causes the currently active delegate of self to be replaced by the delegate corresponding to the new context id.

Setting this to a non-None value overrides the system-wide IM module setting. See the [property`Gtk`.Settings:gtk-im-module] property.