MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / connect

Method connect

deeplabcut/gui/tracklet_toolbox.py:51–57  ·  view source on GitHub ↗

connect to all the events we need

(self)

Source from the content-addressed store, hash-verified

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!"""

Callers 15

add_pointMethod · 0.95
move_to_separate_threadFunction · 0.80
__init__Method · 0.80
_start_requestMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
create_itemMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
_run_update_commandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected