MCPcopy Create free account
hub / github.com/Image-Py/imagepy / mouse_up

Method mouse_up

imagepy/tools/Measure/profile_tol.py:108–115  ·  view source on GitHub ↗
(self, ips, x, y, btn, **key)

Source from the content-addressed store, hash-verified

106 ips.update()
107
108 def mouse_up(self, ips, x, y, btn, **key):
109 self.curobj = None
110 if self.doing:
111 ips.mark.addline()
112 self.doing = False
113 if ips.mark!=None and len(ips.mark.body)==1:
114 self.profile(ips.mark.body, ips.img)
115 ips.update()
116
117 def mouse_move(self, ips, x, y, btn, **key):
118 if not isinstance(ips.mark, Profile):return

Callers

nothing calls this directly

Calls 3

profileMethod · 0.95
addlineMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected