예제 #1
0
 def __init__(self, canvas, left, bottom, width, height):
   ViewPort.__init__(self, canvas, left, bottom, width, height)
   self.elements_y = height * 0.5
   self.min_gp_height = height * 0.2
   self.max_gp_height = height * 0.4
예제 #2
0
 def __init__(self, canvas, left, bottom, width, height):
   ViewPort.__init__(self, canvas, left, bottom, width, height)
   self.height_per_row = 0.8 * (height - 20) / self.items_per_page
   self.current_page_number = 1