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

Method move

imagepy/ui/canvas.py:142–146  ·  view source on GitHub ↗
(self, dx, dy)

Source from the content-addressed store, hash-verified

140 if not self.handle is None: self.handle(self.ips, True)
141
142 def move(self, dx, dy):
143 if self.imgbox[2]<=self.box[2] and self.imgbox[3]<=self.box[3]:return
144 self.imgbox[0] += int(dx+0.5)
145 self.imgbox[1] += int(dy+0.5)
146 self.update(True)
147
148 def center(self, x, y):
149 k = self.scales[self.scaleidx]

Callers 2

mouse_moveMethod · 0.80
mouse_moveMethod · 0.80

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected