INNER CODE UNIT · Python

_setup_product_branding

cunarist/solie · package/solie/window/main.py:507

    async def _setup_product_branding(self) -> None:
        """Set up product icon and title."""
        this_layout = self.horizontalLayout_13

        # Product icon
        product_icon_pixmap = QPixmap()
        filepath = PACKAGE_PATH / "static" / "product_icon.png"
        async with aiofiles.open(filepath, mode="rb") as file:
            product_icon_data = await file.read()
        product_icon_pixmap.loadFromData(product_icon_data)
        product_icon_label = QLabel("", self)
        product_icon_label.setPixmap(product_icon_pixmap)
        product_icon_label.setScaledContents(True)
        product_icon_label.setFixedSize(80, 80)
        this_layout.addWidget(product_icon_label)

        # Spacing
        spacing_text = QLabel("")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…