ScrollEvent
- class ginga.Bindings.ScrollEvent(button=None, state=None, mode=None, modifiers=None, direction=None, amount=None, data_x=None, data_y=None, viewer=None)[source]
Bases:
UIEvent
A mouse or trackpad scroll event in a Ginga viewer.
- Attributes
- buttonstr
The name of the button as set up in the configuration
- state: str
Always ‘scroll’
- 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
- directionfloat
A direction in compass degrees of the scroll
- amountfloat
The amount of the scroll
- 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