comparison tools/rect_drawer.py @ 508:91ee6107a216

Remove debugging print
author Neil Muller <neil@dip.sun.ac.za>
date Fri, 03 Sep 2010 14:39:44 +0200
parents caec319a4ae3
children 616334ea5e8c
comparison
equal deleted inserted replaced
507:caec319a4ae3 508:91ee6107a216
342 def _make_zoom_offset(self, pos): 342 def _make_zoom_offset(self, pos):
343 zoom_pos = (pos[0] * ZOOM, pos[1] * ZOOM) 343 zoom_pos = (pos[0] * ZOOM, pos[1] * ZOOM)
344 offset = [zoom_pos[0] - constants.SCREEN[0] / 2, 344 offset = [zoom_pos[0] - constants.SCREEN[0] / 2,
345 zoom_pos[1] - constants.SCREEN[1] / 2] 345 zoom_pos[1] - constants.SCREEN[1] / 2]
346 self._check_limits(offset) 346 self._check_limits(offset)
347 print offset
348 self.zoom_offset = tuple(offset) 347 self.zoom_offset = tuple(offset)
349 348
350 def _move_zoom(self, x, y): 349 def _move_zoom(self, x, y):
351 offset = list(self.zoom_offset) 350 offset = list(self.zoom_offset)
352 offset[0] += ZOOM_STEP * x 351 offset[0] += ZOOM_STEP * x
353 offset[1] += ZOOM_STEP * y 352 offset[1] += ZOOM_STEP * y
354 self._check_limits(offset) 353 self._check_limits(offset)
355 print offset
356 self.zoom_offset = tuple(offset) 354 self.zoom_offset = tuple(offset)
357 355
358 def do_mouse_move(self, e): 356 def do_mouse_move(self, e):
359 pos = self._conv_pos(e.pos) 357 pos = self._conv_pos(e.pos)
360 if not self.zoom_display: 358 if not self.zoom_display: