def __init__(self, character, config, screen, action_factory, parent): """ Default constructor """ super(InventoryScreen, self).__init__() self.character = character self.config = config self.screen = screen.subwin(20, 75, 2, 2) self.inventory_controller = InventoryController( character, action_factory) self.parent = parent self.keys = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D' ]
def __init__(self, surface_manager, character, action_factory, config, parent): """ Default constructor """ super(InventoryWidget, self).__init__(parent) self.surface_manager = surface_manager self.character = character self.action_factory = action_factory self.config = config self.items_carried = None self.items_in_ground = None self.item_description = None self.character_inventory = None self.inventory_controller = InventoryController( character, action_factory) self.__set_layout(surface_manager, character, config)