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
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)