Beispiel #1
0
    def __init__(self, inventory, width, height, cell_height,
                 label_pos_inside_cell):
        VerticalScrollArea.__init__(self, width, height, cell_height)
        self.inventory = inventory

        ordered = inventory.get_ordered_list()
        BORDER = 7
        for item in ordered:
            group = ItemEntry(self.get_cells_width() - 2 * BORDER - 2,
                              self.cell_height - 2 * BORDER, item, inventory)
            line = self.add_line()
            self[line].add_widget(group, (BORDER, BORDER))
Beispiel #2
0
 def __init__(self, inventory, width, height, cell_height,
              label_pos_inside_cell):
     VerticalScrollArea.__init__(self, width, height, cell_height)
     self.inventory = inventory
     
     ordered = inventory.get_ordered_list()
     BORDER = 7
     for item in ordered:
         group = ItemEntry(self.get_cells_width() - 2 * BORDER - 2,
                           self.cell_height - 2 * BORDER,
                           item, inventory)
         line = self.add_line()
         self[line].add_widget(group, (BORDER, BORDER))
Beispiel #3
0
 def __init__(self, width, height):
     VerticalScrollArea.__init__(self, width, height, 20)