def __set_layout(self, surface_manager, character, action_factory,
                     config, parent):
        self.keymap = self._construct_keymap(config)
        self.setWindowTitle('Menu')
        self.inventory = InventoryWidget(surface_manager = surface_manager,
                                         character = character,
                                         action_factory = action_factory,
                                         config = config,
                                         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()
Set layout of this widget
dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/menu.py/MenuDialog.__set_layout