KeyEvent
- class ginga.Bindings.KeyEvent(key=None, state=None, mode=None, modifiers=None, data_x=None, data_y=None, viewer=None)[source]
Bases:
UIEvent
A key press or release event in a Ginga viewer.
- Attributes
- keystr
The key as it is known to Ginga
- state: str
‘down’ if a key press, ‘up’ if a key release
- modestr
The mode name of the mode that was active when the event happened
- modifiersset of str
A set of names of modifier keys that were pressed at the time
- data_xfloat
X part of the data coordinates of the viewer under the cursor
- data_yfloat
Y part of the data coordinates of the viewer under the cursor
- viewersubclass of
ImageViewBase
The viewer in which the event happened