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

Method mouse_down

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

Source from the content-addressed store, hash-verified

74 self.status = 0
75
76 def mouse_down(self, ips, x, y, btn, **key):
77 if btn==1:
78 ips.snapshot()
79 self.status = 1
80 self.cur = [(x, y)]
81 ips.mark = Mark(self.cur)
82 ips.update()
83
84 def mouse_up(self, ips, x, y, btn, **key):
85 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