connect to all the events we need
(self)
| 49 | self.coords = [] |
| 50 | |
| 51 | def connect(self): |
| 52 | "connect to all the events we need" |
| 53 | |
| 54 | self.cidpress = self.point.figure.canvas.mpl_connect("button_press_event", self.on_press) |
| 55 | self.cidrelease = self.point.figure.canvas.mpl_connect("button_release_event", self.on_release) |
| 56 | self.cidmotion = self.point.figure.canvas.mpl_connect("motion_notify_event", self.on_motion) |
| 57 | self.cidhover = self.point.figure.canvas.mpl_connect("motion_notify_event", self.on_hover) |
| 58 | |
| 59 | def on_press(self, event): |
| 60 | """Define the event for the button press!""" |
no outgoing calls
no test coverage detected