MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / init_mouse_event

Method init_mouse_event

pyxrf/model/lineplot.py:311–316  ·  view source on GitHub ↗

Set up callback for mouse button-press event

(self)

Source from the content-addressed store, hash-verified

309 self.element_id = 0
310
311 def init_mouse_event(self):
312 """Set up callback for mouse button-press event"""
313 # Reference to the toolbar
314 self.t_bar = self._fig.canvas.toolbar
315 # Set callback for Button Press event
316 self._fig.canvas.mpl_connect("button_press_event", self.canvas_onpress)
317
318 def _update_canvas(self):
319 # It may be sufficient to initialize the event only once, but at this point

Callers 1

_update_canvasMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected