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

Method mouse_up

imagepy/tools/Standard/rectangle_tol.py:58–66  ·  view source on GitHub ↗
(self, ips, x, y, btn, **key)

Source from the content-addressed store, hash-verified

56 ips.update()
57
58 def mouse_up(self, ips, x, y, btn, **key):
59 if self.doing:
60 self.doing = False
61 self.curobj = None
62 if ips.roi.dtype == 'rect':
63 if not ips.roi.commit():ips.roi = None
64 elif ips.roi.dtype == 'polygon':
65 ips.roi.commit(self.helper.pop(), self.oper)
66 ips.update()
67
68 def mouse_move(self, ips, x, y, btn, **key):
69 if ips.roi==None:return

Callers

nothing calls this directly

Calls 3

commitMethod · 0.45
popMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected