Gtk.IMMulticontext
Gtk.IMMulticontext — An input method context supporting multiple, loadable input methods
Object Hierarchy:
GObject
╰── Gtk.IMContext
╰── Gtk.IMMulticontext
Functions:
- new
() -> Gtk.IMContext
- append_menuitems
(self, menushell:Gtk.MenuShell)
- get_context_id
(self) -> str
- set_context_id
(self, context_id:str)
Description:
Function Details:
new()
new () -> Gtk.IMContext
Creates a new Gtk.IMMulticontext
.
- Returns:
a new
Gtk.IMMulticontext
.
append_menuitems()
append_menuitems (self, menushell:Gtk.MenuShell)
Gtk.IMMulticontext:append_menuitems
has been deprecated since version 3.10 and should not be used in newly-written code.
It is better to use the system-wide input method framework for changing input methods. Modern desktop shells offer on-screen displays for this that can triggered with a keyboard shortcut, e.g. Super-Space.
Add menuitems for various available input methods to a menu;the menuitems, when selected, will switch the input methodfor the context and the global default input method.
get_context_id()
get_context_id (self) -> str
Gets the id of the currently active slave of the context
.
Returns: the id of the currently active slave
Since: 2.16
set_context_id()
set_context_id (self, context_id:str)
Sets the context id for context
.
This causes the currently active slave of context
to bereplaced by the slave corresponding to the new context id.
- Since: 2.16