gtk.IMMulticontext — an input method context object that manages the use of multiple input method contexts for a widget
class gtk.IMMulticontext(gtk.IMContext): |
The gtk.IMMulticontext
class is a subclass of gtk.IMContext
that manages the use of multiple input method contexts for a widget
including the ability to switch between contexts on the fly. A gtk.IMMulticontext
object will proxy the method calls and signals to and from the object
implementing the input method.
gtk.IMMulticontext()
Returns : | a new gtk.IMMulticontext
object. |
Creates a new gtk.IMMulticontext
object.
def append_menuitems(menushell
)
| a gtk.MenuShell
widget |
The append_menuitems
() method adds
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.
def get_context_id()
Returns : | The id of the currently active slave. |
This method is available in PyGTK 2.16 and above.
The get_context_id
() method gets the id of the
currently active slave of the context.
def set_context_id(context_id
)
| The id to use. |
This method is available in PyGTK 2.16 and above.
The set_context_id
() method sets the context id
for context.
This causes the currently active slave of context to be replaced by the slave corresponding to the new context id.