INNER CODE UNIT · Python
_setup_symbol_boxes
cunarist/solie · package/solie/window/main.py:376
def _setup_symbol_boxes(
self,
asset_token: str,
target_symbols: list[str],
symbol_pixmaps: dict[str, QPixmap],
coin_ranks: dict[str, int],
) -> None:
"""Set up symbol boxes for each trading symbol."""
name_text_size = 11
price_text_size = 9
detail_text_size = 7
is_long = len(target_symbols) > LONG_SYMBOL_LIST_THRESHOLD
# Add spacers
for layout in [self.horizontalLayout_20, self.horizontalLayout_17]:
spacer = QSpacerItem(
0,