INNER CODE UNIT · Python

_build_sidebar

HaxL0p4/L0p4Map · ui/app.py:544

    def _build_sidebar(self):
        sidebar = QWidget()
        sidebar.setFixedWidth(56)
        sidebar.setStyleSheet("""
            QWidget {
                background-color: #080808;
                border-right: 1px solid #1a1a1a;
            }
        """)
        layout = QVBoxLayout(sidebar)
        layout.setContentsMargins(4, 8, 4, 8)
        layout.setSpacing(4)

        assets = os.path.join(os.path.dirname(__file__), "../img", "icons")

        def make_btn(icon_file, tooltip):
            icon_path = os.path.join(assets, icon_file)
            btn = QPushButton()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…