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

Method mouse_down

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

Source from the content-addressed store, hash-verified

12 self.ox, self.oy = 0, 0
13
14 def mouse_down(self, ips, x, y, btn, **key):
15 if btn==2:
16 self.ox, self.oy = key['canvas'].to_panel_coor(x,y)
17 print(self.ox, self.oy)
18 #print 'down', self.ox, self.oy
19 if btn==1: key['canvas'].zoomout(x,y)
20 if btn==3: key['canvas'].zoomin(x,y)
21
22 def mouse_up(self, ips, x, y, btn, **key):
23 pass

Callers

nothing calls this directly

Calls 3

to_panel_coorMethod · 0.80
zoomoutMethod · 0.80
zoominMethod · 0.80

Tested by

no test coverage detected