INNER CODE UNIT · Python
_setup_token_display
cunarist/solie · package/solie/window/main.py:325
def _setup_token_display(self, asset_token: str, token_pixmap: QPixmap) -> None:
"""Set up the token display area."""
token_text_size = 14
icon_label = QLabel()
icon_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
icon_label.setPixmap(token_pixmap)
icon_label.setScaledContents(True)
icon_label.setFixedSize(30, 30)
this_layout = QHBoxLayout()
self.verticalLayout_14.addLayout(this_layout)
this_layout.addWidget(icon_label)
token_font = QFont()
token_font.setPointSize(token_text_size)
token_font.setWeight(QFont.Weight.Bold)
token_label = QLabel()
token_label.setText(asset_token)