Ejemplo n.º 1
0
  def __init__(self, canvas, left, bottom, width, height):
    """Defines section of a canvas for displaying the list.

    Args:
      canvas: Canvas where the view is drawn.
      left:
      bottom:
      width:
      height: Define the section of the canvas where view will be drawn.
    """
    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
Ejemplo n.º 2
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
Ejemplo n.º 3
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
 def __init__(self, canvas, left, bottom, width, height):
     ViewPort.__init__(self, canvas, left, bottom, width, height)
Ejemplo n.º 5
0
 def __init__(self, canvas, left, bottom, width, height):
   ViewPort.__init__(self, canvas, left, bottom, width, height)