pyface.key_pressed_event module

The event that is generated when a key is pressed.

class pyface.key_pressed_event.KeyPressedEvent[source]

Bases: traits.has_traits.HasTraits

The event that is generated when a key is pressed.

alt_down = Bool()

Is the alt key down?

control_down = Bool()

Is the control key down?

shift_down = Bool()

Is the shift key down?

key_code = Int()

The keycode.

event = Any()

The original toolkit specific event.