from logging import getLogger from PyQt5.QtWidgets import QLabel, QHBoxLayout, QVBoxLayout, QPushButton from rare.components.tabs.Games.GameWidgets.base_uninstalled_widget import BaseUninstalledWidget from custom_legendary.core import LegendaryCore 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"