from PySide6.QtCore import (QCoreApplication, QRect, Qt) from PySide6.QtGui import (QFont) from PySide6.QtWidgets import (QLabel, QFrame) class Ui_scanningDialog(object): def setupUi(self, Dialog): if not Dialog.objectName(): Dialog.setObjectName(u"Dialog") Dialog.resize(320, 160) # Set the window flags to remove the title bar Dialog.setWindowFlags(Qt.WindowType.FramelessWindowHint) font = QFont() font.setFamilies([u"Optimism Sans"]) font.setPointSize(8) font.setBold(True) Dialog.setFont(font) self.label = QLabel(Dialog) self.label.setObjectName(u"label") self.label.setFont(font) self.label.setGeometry(QRect(10, 10, 300, 140)) self.label.setAlignment(Qt.AlignCenter) self.label.setWordWrap(True) label_style = """ QLabel { background-image: url(""); background-color: #FF80D4; border: 1px solid #FF33BB; border-radius: 10px; } """ self.label.setStyleSheet(label_style) self.retranslateUi(Dialog) # setupUi def retranslateUi(self, Dialog): self.label.setText(QCoreApplication.translate("Dialog", u"SCANNING FOR DSO80204B", None)) # retranslateUi