PointEvent

class ginga.Bindings.PointEvent(button=None, state=None, mode=None, modifiers=None, data_x=None, data_y=None, viewer=None)[source]

Bases: UIEvent

A mouse/pointer/cursor event in a Ginga viewer.

Attributes
buttonstr

The name of the button as set up in the configuration

state: str

‘down’ if a press, ‘move’ if being dragged, ‘up’ if a 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