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 (11), GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new ()
  append_menuitems (menushell)
  get_context_id ()
  set_context_id (context_id)

Virtual Methods

Inherited:Gtk.IMContext (16), GObject.Object (7)

Properties

Inherited:Gtk.IMContext (2)

Fields

Inherited:Gtk.IMContext (6), GObject.Object (1)
Name Type Access Description
object Gtk.IMContext r  
priv Gtk.IMMulticontextPrivate r  

Class Details

class Gtk.IMMulticontext(**kwargs)
Bases:Gtk.IMContext
Abstract:No
Structure:Gtk.IMMulticontextClass
classmethod new()[source]
Returns:a new Gtk.IMMulticontext.
Return type:Gtk.IMContext

Creates a new Gtk.IMMulticontext.

append_menuitems(menushell)[source]
Parameters:menushell (Gtk.MenuShell) – a Gtk.MenuShell

Add menuitems for various available input methods to a menu; the menuitems, when selected, will switch the input method for the context and the global default input method.

Deprecated since version 3.10: 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.

get_context_id()[source]
Returns:the id of the currently active slave
Return type:str

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

New in version 2.16.

set_context_id(context_id)[source]
Parameters:context_id (str) – the id to use

Sets the context id for self.

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

New in version 2.16.