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

Method mouse_move

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

Source from the content-addressed store, hash-verified

23 pass
24
25 def mouse_move(self, ips, x, y, btn, **key):
26 if btn==2:
27 x,y = key['canvas'].to_panel_coor(x,y)
28 #print 'x,y',x,y
29 #print 'dx,dy:', x-self.ox, y-self.oy
30 key['canvas'].move(x-self.ox, y-self.oy)
31 self.ox, self.oy = x,y
32
33 def mouse_wheel(self, ips, x, y, d, **key):
34 if d>0:key['canvas'].zoomout(x,y)

Callers

nothing calls this directly

Calls 2

to_panel_coorMethod · 0.80
moveMethod · 0.80

Tested by

no test coverage detected