:right-sidebar: True IMMulticontext =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: IMMulticontext(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.IMContext`, :class:`~gi.repository.GObject.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 ------------ .. rst-class:: interim-class .. class:: IMMulticontext :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.IMContext Creates a new ``GtkIMMulticontext``. Methods ------- .. rst-class:: interim-class .. class:: IMMulticontext :no-index: .. method:: get_context_id() -> str Gets the id of the currently active delegate of the ``context``. .. method:: 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-:const:`None` value overrides the system-wide IM module setting. See the :obj:`~gi.repository.Gtk.Settings.props.gtk_im_module` property. :param context_id: the id to use Fields ------ .. rst-class:: interim-class .. class:: IMMulticontext :no-index: .. attribute:: object .. attribute:: priv