Exemplo n.º 1
0
 def zoom_out(self, *args):
   if self.zoom > 1:
     self.zoom *= .5
     self.offset = (self.offset - self.width / 2 ) * .5 
     self.calc_points()
     self.draw_points()
     from pageloader import get_widget
     get_widget('lbl_zoom').text = 'x' + str(self.zoom)
Exemplo n.º 2
0
 def zoom_in(self, *args):
   if self.zoom < 32:
     self.zoom *= 2.
     self.offset = self.offset * 2. + self.width / 2
     self.calc_points()
     self.draw_points()
     from pageloader import get_widget
     get_widget('lbl_zoom').text = 'x' + str(self.zoom)