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

Method mouse_down

imagepy/tools/Network/graphcut_tol.py:69–75  ·  view source on GitHub ↗
(self, ips, x, y, btn, **key)

Source from the content-addressed store, hash-verified

67 self.status = 0
68
69 def mouse_down(self, ips, x, y, btn, **key):
70 if btn==1:
71 ips.snapshot()
72 self.status = 1
73 self.cur = [(x, y)]
74 ips.mark = Mark(self.cur)
75 ips.update()
76
77 def mouse_up(self, ips, x, y, btn, **key):
78 ips.mark = None

Callers

nothing calls this directly

Calls 3

MarkClass · 0.70
snapshotMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected