from logging import getLogger from PyQt5.QtWidgets import QLabel, QHBoxLayout, QVBoxLayout, QPushButton from custom_legendary.core import LegendaryCore from rare.components.tabs.games.game_widgets.base_uninstalled_widget import BaseUninstalledWidget logger = getLogger("Game") class ListWidgetUninstalled(BaseUninstalledWidget): def __init__(self, core: LegendaryCore, game, pixmap): super(ListWidgetUninstalled, self).__init__(game, core, pixmap) self.layout = QHBoxLayout() if self.pixmap: w = 200 self.pixmap = self.pixmap.scaled(w, int(w * 4 / 3)) self.image = QLabel() self.image.setPixmap(self.pixmap) self.layout.addWidget(self.image) self.child_layout = QVBoxLayout() self.title_label = QLabel(f"