Source code for views.ui_splash_screen

# Form implementation generated from reading ui file 'moilapp_splash_screen.ui'
#
# Created by: PyQt6 UI code generator 6.3.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


[docs] class Ui_SplashScreen(object):
[docs] def setupUi(self, SplashScreen): SplashScreen.setObjectName("SplashScreen") SplashScreen.resize(488, 218) self.centralwidget = QtWidgets.QWidget(SplashScreen) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout.setContentsMargins(10, 10, 10, 10) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.dropShadowFrame = QtWidgets.QFrame(self.centralwidget) self.dropShadowFrame.setStyleSheet("QFrame {\n" " background-color: #1C304A;\n" " color: rgb(220, 220, 220);\n" " border-radius: 20px;\n" "}\n" "\n" "#label_title {\n" "font: 26pt \"Segoe UI\"\n" "}\n" "\n" "#label_description{\n" "font: 10pt \"Segoe UI\"\n" "}") self.dropShadowFrame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) self.dropShadowFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) self.dropShadowFrame.setObjectName("dropShadowFrame") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.dropShadowFrame) self.verticalLayout_2.setContentsMargins(5, 5, 5, 5) self.verticalLayout_2.setSpacing(5) self.verticalLayout_2.setObjectName("verticalLayout_2") spacerItem = QtWidgets.QSpacerItem(15, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed) self.verticalLayout_2.addItem(spacerItem) self.label_title = QtWidgets.QLabel(self.dropShadowFrame) self.label_title.setMaximumSize(QtCore.QSize(16777215, 50)) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(26) font.setBold(False) font.setItalic(False) font.setWeight(50) self.label_title.setFont(font) self.label_title.setStyleSheet("color: #FFFFFF;") self.label_title.setTextFormat(QtCore.Qt.TextFormat.AutoText) self.label_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignBottom|QtCore.Qt.AlignmentFlag.AlignHCenter) self.label_title.setObjectName("label_title") self.verticalLayout_2.addWidget(self.label_title) self.label_description = QtWidgets.QLabel(self.dropShadowFrame) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(10) font.setBold(False) font.setItalic(False) font.setWeight(50) self.label_description.setFont(font) self.label_description.setStyleSheet("color: #00CFFF;") self.label_description.setAlignment(QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) self.label_description.setObjectName("label_description") self.verticalLayout_2.addWidget(self.label_description) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem1 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.progressBar = QtWidgets.QProgressBar(self.dropShadowFrame) self.progressBar.setMinimumSize(QtCore.QSize(0, 26)) self.progressBar.setStyleSheet("QProgressBar {\n" "\n" " background-color: rgb(98, 114, 164);\n" " color: #FFFFFF;\n" " border-style: none;\n" " border-radius: 10px;\n" " text-align: center;\n" "}\n" "QProgressBar::chunk{\n" " border-radius: 10px;\n" " background-color: qlineargradient(spread:pad, x1:0, y1:0.511364, x2:1, y2:0.523, stop:0 rgba(254, 121, 199, 255), stop:1 rgba(170, 85, 255, 255));\n" "}") self.progressBar.setProperty("value", 24) self.progressBar.setObjectName("progressBar") self.horizontalLayout.addWidget(self.progressBar) spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.verticalLayout_2.addLayout(self.horizontalLayout) self.label_loading = QtWidgets.QLabel(self.dropShadowFrame) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(12) self.label_loading.setFont(font) self.label_loading.setStyleSheet("color:#FFFFFF;") self.label_loading.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) self.label_loading.setObjectName("label_loading") self.verticalLayout_2.addWidget(self.label_loading) spacerItem3 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed) self.verticalLayout_2.addItem(spacerItem3) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_credits = QtWidgets.QLabel(self.dropShadowFrame) font = QtGui.QFont() font.setFamily("Segoe UI") font.setPointSize(10) self.label_credits.setFont(font) self.label_credits.setStyleSheet("color: #00CFFF;") self.label_credits.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter) self.label_credits.setObjectName("label_credits") self.horizontalLayout_2.addWidget(self.label_credits) spacerItem4 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_2.addItem(spacerItem4) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.verticalLayout.addWidget(self.dropShadowFrame) SplashScreen.setCentralWidget(self.centralwidget) self.retranslateUi(SplashScreen) QtCore.QMetaObject.connectSlotsByName(SplashScreen)
[docs] def retranslateUi(self, SplashScreen): _translate = QtCore.QCoreApplication.translate SplashScreen.setWindowTitle(_translate("SplashScreen", "MainWindow")) self.label_title.setText(_translate("SplashScreen", "<html><head/><body><p>Moil Apps</p></body></html>")) self.label_description.setText(_translate("SplashScreen", "<html><head/><body><p>Fisheye image processing application</p></body></html>")) self.label_loading.setText(_translate("SplashScreen", "loading...")) self.label_credits.setText(_translate("SplashScreen", "<html><head/><body><p><span style=\" font-weight:600;\">Created</span>: Moil (c)-2022 </p></body></html>"))
if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) SplashScreen = QtWidgets.QMainWindow() ui = Ui_SplashScreen() ui.setupUi(SplashScreen) SplashScreen.show() sys.exit(app.exec())