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

Method mouse_down

imagepy/tools/Transform/scale_tol.py:27–30  ·  view source on GitHub ↗
(self, ips, x, y, btn, **key)

Source from the content-addressed store, hash-verified

25 return False
26
27 def mouse_down(self, ips, x, y, btn, **key):
28 lim = 5.0/key['canvas'].get_scale()
29 self.moving = self.snap(x, y, lim)
30 print(self.moving)
31
32 def mouse_up(self, ips, x, y, btn, **key):
33 if self.moving : self.plg.preview(ips, self.para)

Callers

nothing calls this directly

Calls 2

snapMethod · 0.95
get_scaleMethod · 0.80

Tested by

no test coverage detected