

def __set_layout(self, surface_manager, character, action_factory, config, parent):
    '\n        Set layout of this widget\n        '
    self.keymap = self._construct_keymap(config)
    self.setWindowTitle('Menu')
    self.inventory = InventoryWidget(surface_manager=surface_manager, character=character, action_factory=action_factory, config=layout, parent=parent)
    self.character = CharacterWidget(surface_manager=surface_manager, character=character, parent=parent)
    self.tabs = QTabWidget()
    self.tabs.addTab(self.inventory, 'Inventory')
    self.tabs.addTab(self.character, 'Character')
    layout = QVBoxLayout()
    layout.addWidget(self.tabs)
    self.setLayout(layout)
    self.inventory.items_carried.items[0].setFocus()

dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/menu.py MenuDialog.__set_layout/VarMisuse@60/99 `config`->`layout`