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.


Returns a clone of the KeyBindings object.


Dispose of the object.

do(event, controllers=[], *args, **kw)

Processes a keyboard event.


Edits a possibly hierarchical set of KeyBindings.

key_binding_for(binding, key_name)

Returns the current binding for a specified key (if any).


Merges another set of key bindings into this set.

Previous topic

traitsui.item module

Next topic

traitsui.list_str_adapter module

This Page