IMMulticontext

class IMMulticontext(**properties: Any)

Superclasses: IMContext, Object

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.

Constructors

class IMMulticontext
classmethod new() IMContext

Creates a new GtkIMMulticontext.

Methods

class IMMulticontext
get_context_id() str

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

set_context_id(context_id: str | None = None) None

Sets the context id for context.

This causes the currently active delegate of context 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 gtk_im_module property.

Parameters:

context_id – the id to use

Fields

class IMMulticontext
object
priv