9 lines
283 B
Python
9 lines
283 B
Python
from PyQt6.QtWidgets import QLabel
|
|
from PyQt6.QtGui import QFont
|
|
|
|
class SubLabel(QLabel):
|
|
""" Formatting for sub-labels. """
|
|
def __init__(self, value):
|
|
super().__init__()
|
|
self.setFont(QFont("Calibre", 10, weight=QFont.Weight.Bold))
|
|
self.setText(value) |