EventHandler

Event: Event

 

__init__(self, figure, on_click=None, on_release=None, on_draw=None, on_key_press=None, on_key_release=None, on_move=None, on_select=None, on_resize=None, on_scroll=None, on_figure_entered=None, on_figure_left=None, on_axes_entered=None, on_axes_left=None): 

Creates an EventHandler on a Figure that handles most interactivity stuff

  • figure: GraphicsBase
  • on_click: Any
  • on_release: Any
  • on_draw: Any
  • on_key_press: Any
  • on_key_release: Any
  • on_move: Any
  • on_select: Any
  • on_resize: Any
  • on_scroll: Any
  • on_figure_entered: Any
  • on_figure_left: Any
  • on_axes_entered: Any
  • on_axes_left: Any

 

bind(self, **handlers): 

 

@property
handlers(self): 

 

ButtonPressedEvent(self, handler, **kw): 

 

ButtonReleasedEvent(self, handler, **kw): 

 

DrawEvent(self, handler, **kw): 

 

KeyPressedEvent(self, handler, **kw): 

 

KeyReleasedEvent(self, handler, **kw): 

 

MoveEvent(self, handler, **kw): 

 

SelectEvent(self, handler, **kw): 

 

ScrollEvent(self, handler, **kw): 

 

FigureEnterEvent(self, handler, **kw): 

 

FigureLeaveEvent(self, handler, **kw): 

 

AxesEnterEvent(self, handler, **kw): 

 

AxesLeaveEvent(self, handler, **kw): 

Feedback

Examples

Templates

Documentation