traitsui.key_bindings module¶
Defines KeyBinding and KeyBindings classes, which manage the mapping of keystroke events into method calls on controller objects that are supplied by the application.
-
class
traitsui.key_bindings.
KeyBinding
¶ Bases:
traits.has_traits.HasStrictTraits
Binds one or two keystrokes to a method.
-
class
traitsui.key_bindings.
KeyBindings
(*bindings, **traits)¶ Bases:
traits.has_traits.HasPrivateTraits
A set of key bindings.
-
clone
(**traits)¶ Returns a clone of the KeyBindings object.
-
dispose
()¶ Dispose of the object.
-
do
(event, controllers=[], *args, **kw)¶ Processes a keyboard event.
-
edit
()¶ Edits a possibly hierarchical set of KeyBindings.
-
key_binding_for
(binding, key_name)¶ Returns the current binding for a specified key (if any).
-
merge
(key_bindings)¶ Merges another set of key bindings into this set.
-