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

Method mouse_up

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

Source from the content-addressed store, hash-verified

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