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

Method mouse_down

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

Source from the content-addressed store, hash-verified

19 self.cursor = wx.CURSOR_CROSS
20
21 def mouse_down(self, ips, x, y, btn, **key):
22 self.sta = 1
23 self.paint.set_curpt(int(x), int(y))
24 ips.snapshot()
25
26 def mouse_up(self, ips, x, y, btn, **key):
27 self.paint.lineto(ips.img, int(x), int(y), self.para['width'])

Callers

nothing calls this directly

Calls 2

set_curptMethod · 0.80
snapshotMethod · 0.45

Tested by

no test coverage detected