INNER CODE UNIT · Python

__init__

pairinteraction/pairinteraction · src/pairinteraction_gui/app.py:78

    def __init__(self) -> None:
        super().__init__()
        self.setWindowTitle("Launching the PairInteraction GUI")
        border = 16
        logo_size = 250
        full_size = logo_size + 2 * border
        pixmap = QPixmap(full_size, full_size)
        pixmap.fill(QColor("#28354e"))  # "Dark" theme color
        painter = QPainter(pixmap)
        painter.translate(border, border)
        _draw_logo(painter, logo_size)
        painter.end()
        self.setPixmap(pixmap)


def _draw_logo(painter: QPainter, size: int) -> None:
    """Draw the PairInteraction logo using QPainter, ported from data/icon.tex (TikZ source)."""
    s = size / 19.0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…