|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +# Form implementation generated from reading ui file '.\project.ui' |
| 4 | +# |
| 5 | +# Created by: PyQt5 UI code generator 5.15.4 |
| 6 | +# |
| 7 | +# WARNING: Any manual changes made to this file will be lost when pyuic5 is |
| 8 | +# run again. Do not edit this file unless you know what you are doing. |
| 9 | + |
| 10 | + |
| 11 | +from PyQt5 import QtCore, QtGui, QtWidgets |
| 12 | + |
| 13 | + |
| 14 | +class Ui_MainWindow(object): |
| 15 | + def setupUi(self, MainWindow): |
| 16 | + MainWindow.setObjectName("MainWindow") |
| 17 | + MainWindow.resize(684, 527) |
| 18 | + self.centralwidget = QtWidgets.QWidget(MainWindow) |
| 19 | + self.centralwidget.setObjectName("centralwidget") |
| 20 | + self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) |
| 21 | + self.gridLayout.setObjectName("gridLayout") |
| 22 | + self.verticalLayout = QtWidgets.QVBoxLayout() |
| 23 | + self.verticalLayout.setObjectName("verticalLayout") |
| 24 | + self.label_title = QtWidgets.QLabel(self.centralwidget) |
| 25 | + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
| 26 | + sizePolicy.setHorizontalStretch(0) |
| 27 | + sizePolicy.setVerticalStretch(0) |
| 28 | + sizePolicy.setHeightForWidth(self.label_title.sizePolicy().hasHeightForWidth()) |
| 29 | + self.label_title.setSizePolicy(sizePolicy) |
| 30 | + font = QtGui.QFont() |
| 31 | + font.setPointSize(20) |
| 32 | + self.label_title.setFont(font) |
| 33 | + self.label_title.setAlignment(QtCore.Qt.AlignCenter) |
| 34 | + self.label_title.setObjectName("label_title") |
| 35 | + self.verticalLayout.addWidget(self.label_title) |
| 36 | + self.horizontalLayout = QtWidgets.QHBoxLayout() |
| 37 | + self.horizontalLayout.setObjectName("horizontalLayout") |
| 38 | + self.label_username = QtWidgets.QLabel(self.centralwidget) |
| 39 | + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
| 40 | + sizePolicy.setHorizontalStretch(0) |
| 41 | + sizePolicy.setVerticalStretch(0) |
| 42 | + sizePolicy.setHeightForWidth(self.label_username.sizePolicy().hasHeightForWidth()) |
| 43 | + self.label_username.setSizePolicy(sizePolicy) |
| 44 | + font = QtGui.QFont() |
| 45 | + font.setPointSize(18) |
| 46 | + self.label_username.setFont(font) |
| 47 | + self.label_username.setLayoutDirection(QtCore.Qt.LeftToRight) |
| 48 | + self.label_username.setObjectName("label_username") |
| 49 | + self.horizontalLayout.addWidget(self.label_username) |
| 50 | + self.lineEdit_username = QtWidgets.QLineEdit(self.centralwidget) |
| 51 | + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
| 52 | + sizePolicy.setHorizontalStretch(0) |
| 53 | + sizePolicy.setVerticalStretch(0) |
| 54 | + sizePolicy.setHeightForWidth(self.lineEdit_username.sizePolicy().hasHeightForWidth()) |
| 55 | + self.lineEdit_username.setSizePolicy(sizePolicy) |
| 56 | + self.lineEdit_username.setObjectName("lineEdit_username") |
| 57 | + self.horizontalLayout.addWidget(self.lineEdit_username) |
| 58 | + self.horizontalLayout.setStretch(0, 1) |
| 59 | + self.horizontalLayout.setStretch(1, 2) |
| 60 | + self.verticalLayout.addLayout(self.horizontalLayout) |
| 61 | + self.horizontalLayout_2 = QtWidgets.QHBoxLayout() |
| 62 | + self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 63 | + self.label_passwd = QtWidgets.QLabel(self.centralwidget) |
| 64 | + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
| 65 | + sizePolicy.setHorizontalStretch(0) |
| 66 | + sizePolicy.setVerticalStretch(0) |
| 67 | + sizePolicy.setHeightForWidth(self.label_passwd.sizePolicy().hasHeightForWidth()) |
| 68 | + self.label_passwd.setSizePolicy(sizePolicy) |
| 69 | + font = QtGui.QFont() |
| 70 | + font.setPointSize(18) |
| 71 | + self.label_passwd.setFont(font) |
| 72 | + self.label_passwd.setObjectName("label_passwd") |
| 73 | + self.horizontalLayout_2.addWidget(self.label_passwd) |
| 74 | + self.lineEdit_passwd = QtWidgets.QLineEdit(self.centralwidget) |
| 75 | + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
| 76 | + sizePolicy.setHorizontalStretch(0) |
| 77 | + sizePolicy.setVerticalStretch(0) |
| 78 | + sizePolicy.setHeightForWidth(self.lineEdit_passwd.sizePolicy().hasHeightForWidth()) |
| 79 | + self.lineEdit_passwd.setSizePolicy(sizePolicy) |
| 80 | + self.lineEdit_passwd.setObjectName("lineEdit_passwd") |
| 81 | + self.horizontalLayout_2.addWidget(self.lineEdit_passwd) |
| 82 | + self.horizontalLayout_2.setStretch(0, 1) |
| 83 | + self.horizontalLayout_2.setStretch(1, 2) |
| 84 | + self.verticalLayout.addLayout(self.horizontalLayout_2) |
| 85 | + self.pushButton_login = QtWidgets.QPushButton(self.centralwidget) |
| 86 | + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) |
| 87 | + sizePolicy.setHorizontalStretch(0) |
| 88 | + sizePolicy.setVerticalStretch(0) |
| 89 | + sizePolicy.setHeightForWidth(self.pushButton_login.sizePolicy().hasHeightForWidth()) |
| 90 | + self.pushButton_login.setSizePolicy(sizePolicy) |
| 91 | + font = QtGui.QFont() |
| 92 | + font.setPointSize(18) |
| 93 | + self.pushButton_login.setFont(font) |
| 94 | + self.pushButton_login.setToolTipDuration(-3) |
| 95 | + self.pushButton_login.setObjectName("pushButton_login") |
| 96 | + self.verticalLayout.addWidget(self.pushButton_login) |
| 97 | + self.verticalLayout.setStretch(0, 2) |
| 98 | + self.verticalLayout.setStretch(1, 1) |
| 99 | + self.verticalLayout.setStretch(2, 1) |
| 100 | + self.verticalLayout.setStretch(3, 2) |
| 101 | + self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) |
| 102 | + MainWindow.setCentralWidget(self.centralwidget) |
| 103 | + self.menubar = QtWidgets.QMenuBar(MainWindow) |
| 104 | + self.menubar.setGeometry(QtCore.QRect(0, 0, 684, 23)) |
| 105 | + self.menubar.setObjectName("menubar") |
| 106 | + MainWindow.setMenuBar(self.menubar) |
| 107 | + self.statusbar = QtWidgets.QStatusBar(MainWindow) |
| 108 | + self.statusbar.setObjectName("statusbar") |
| 109 | + MainWindow.setStatusBar(self.statusbar) |
| 110 | + |
| 111 | + self.retranslateUi(MainWindow) |
| 112 | + QtCore.QMetaObject.connectSlotsByName(MainWindow) |
| 113 | + |
| 114 | + def retranslateUi(self, MainWindow): |
| 115 | + _translate = QtCore.QCoreApplication.translate |
| 116 | + MainWindow.setWindowTitle(_translate("MainWindow", "主题美化示例")) |
| 117 | + self.label_title.setText(_translate("MainWindow", "登录系统")) |
| 118 | + self.label_username.setText(_translate("MainWindow", "用户名")) |
| 119 | + self.label_passwd.setText(_translate("MainWindow", "密 码")) |
| 120 | + self.pushButton_login.setText(_translate("MainWindow", "登 录")) |
0 commit comments