| After Width: | Height: | Size: 1.9 MiB | 
| After Width: | Height: | Size: 2.0 MiB | 
| After Width: | Height: | Size: 1.2 MiB | 
| Before Width: | Height: | Size: 33 KiB | 
| After Width: | Height: | Size: 592 KiB | 
| After Width: | Height: | Size: 1.4 MiB | 
| After Width: | Height: | Size: 1.3 MiB | 
| Before Width: | Height: | Size: 34 KiB | 
| After Width: | Height: | Size: 1.7 MiB | 
| Before Width: | Height: | Size: 3.4 MiB After Width: | Height: | Size: 2.1 MiB | 
| After Width: | Height: | Size: 325 KiB | 
| @ -0,0 +1,8 @@ | ||||
| # Default ignored files | ||||
| /shelf/ | ||||
| /workspace.xml | ||||
| # Editor-based HTTP Client requests | ||||
| /httpRequests/ | ||||
| # Datasource local storage ignored files | ||||
| /dataSources/ | ||||
| /dataSources.local.xml | ||||
| @ -0,0 +1,6 @@ | ||||
| <component name="InspectionProjectProfileManager"> | ||||
|   <settings> | ||||
|     <option name="USE_PROJECT_PROFILE" value="false" /> | ||||
|     <version value="1.0" /> | ||||
|   </settings> | ||||
| </component> | ||||
| @ -0,0 +1,4 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10" project-jdk-type="Python SDK" /> | ||||
| </project> | ||||
| @ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project version="4"> | ||||
|   <component name="ProjectModuleManager"> | ||||
|     <modules> | ||||
|       <module fileurl="file://$PROJECT_DIR$/.idea/登录界面.iml" filepath="$PROJECT_DIR$/.idea/登录界面.iml" /> | ||||
|     </modules> | ||||
|   </component> | ||||
| </project> | ||||
| @ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <module type="PYTHON_MODULE" version="4"> | ||||
|   <component name="NewModuleRootManager"> | ||||
|     <content url="file://$MODULE_DIR$" /> | ||||
|     <orderEntry type="inheritedJdk" /> | ||||
|     <orderEntry type="sourceFolder" forTests="false" /> | ||||
|   </component> | ||||
| </module> | ||||
| After Width: | Height: | Size: 57 KiB | 
| After Width: | Height: | Size: 39 KiB | 
| @ -0,0 +1,204 @@ | ||||
| # -*- coding: utf-8 -*- | ||||
| 
 | ||||
| ################################################################################ | ||||
| ## Form generated from reading UI file 'login.ui' | ||||
| ## | ||||
| ## Created by: Qt User Interface Compiler version 5.15.2 | ||||
| ## | ||||
| ## WARNING! All changes made in this file will be lost when recompiling UI file! | ||||
| ################################################################################ | ||||
| 
 | ||||
| from PySide2.QtCore import * | ||||
| from PySide2.QtGui import * | ||||
| from PySide2.QtWidgets import * | ||||
| 
 | ||||
| import res | ||||
| 
 | ||||
| 
 | ||||
| class Ui_Form(object): | ||||
|     def setupUi(self, Form): | ||||
|         if not Form.objectName(): | ||||
|             Form.setObjectName(u"Form") | ||||
|         Form.resize(956, 795) | ||||
| 
 | ||||
|         # 隐藏非边框 | ||||
|         Form.setWindowFlags(Qt.FramelessWindowHint) | ||||
|         # 背景透明 | ||||
|         Form.setAttribute(Qt.WA_TranslucentBackground) | ||||
| 
 | ||||
|         self.label = QLabel(Form) | ||||
|         self.label.setObjectName(u"label") | ||||
|         self.label.setGeometry(QRect(50, 110, 371, 500)) | ||||
|         self.label.setStyleSheet(u"border-image: url(:/img/img/58.jpg);\n" | ||||
|                                  "border-top-left-radius: 30px;\n" | ||||
|                                  "border-bottom-left-radius: 30px") | ||||
|         self.label_2 = QLabel(Form) | ||||
|         self.label_2.setObjectName(u"label_2") | ||||
|         self.label_2.setGeometry(QRect(389, 110, 421, 500)) | ||||
|         self.label_2.setStyleSheet(u"border-top-right-radius: 30px;\n" | ||||
|                                    "border: 1px solid violet;\n" | ||||
|                                    "border-bottom-right-radius: 30px;\n" | ||||
|                                    "background-color: rgb(255, 255, 255);") | ||||
|         self.widget = QWidget(Form) | ||||
|         self.widget.setObjectName(u"widget") | ||||
|         self.widget.setGeometry(QRect(500, 160, 215, 50)) | ||||
|         self.horizontalLayout = QHBoxLayout(self.widget) | ||||
|         self.horizontalLayout.setObjectName(u"horizontalLayout") | ||||
|         self.pushButton = QPushButton(self.widget) | ||||
|         self.pushButton.setObjectName(u"pushButton") | ||||
|         font = QFont() | ||||
|         font.setPointSize(12) | ||||
|         self.pushButton.setFont(font) | ||||
|         self.pushButton.setStyleSheet(u"#pushButton{\n" | ||||
|                                       "border:none;\n" | ||||
|                                       "color:rgb(170, 0, 255);\n" | ||||
|                                       "}\n" | ||||
|                                       "#pushButton:focus {\n" | ||||
|                                       "	color:gray;\n" | ||||
|                                       "}\n" | ||||
|                                       "") | ||||
| 
 | ||||
|         self.horizontalLayout.addWidget(self.pushButton) | ||||
| 
 | ||||
|         self.line = QFrame(self.widget) | ||||
|         self.line.setObjectName(u"line") | ||||
|         font1 = QFont() | ||||
|         font1.setBold(True) | ||||
|         font1.setWeight(75) | ||||
|         self.line.setFont(font1) | ||||
|         self.line.setFrameShape(QFrame.VLine) | ||||
|         self.line.setFrameShadow(QFrame.Sunken) | ||||
| 
 | ||||
|         self.horizontalLayout.addWidget(self.line) | ||||
| 
 | ||||
|         self.pushButton_2 = QPushButton(self.widget) | ||||
|         self.pushButton_2.setObjectName(u"pushButton_2") | ||||
|         self.pushButton_2.setFont(font) | ||||
|         self.pushButton_2.setStyleSheet(u"#pushButton_2{\n" | ||||
|                                         "border:none;\n" | ||||
|                                         "color:rgb(170, 0, 255);\n" | ||||
|                                         "}\n" | ||||
|                                         "#pushButton_2:focus{\n" | ||||
|                                         "	color: gray;\n" | ||||
|                                         "}") | ||||
| 
 | ||||
|         self.horizontalLayout.addWidget(self.pushButton_2) | ||||
| 
 | ||||
|         self.widget_2 = QWidget(Form) | ||||
|         self.widget_2.setObjectName(u"widget_2") | ||||
|         self.widget_2.setGeometry(QRect(430, 230, 351, 361)) | ||||
|         self.lineEdit = QLineEdit(self.widget_2) | ||||
|         self.lineEdit.setObjectName(u"lineEdit") | ||||
|         self.lineEdit.setGeometry(QRect(50, 70, 251, 51)) | ||||
|         self.lineEdit.setStyleSheet(u"border:1px solid rgb(170, 0, 255);\n" | ||||
|                                     "border-radius:10px;") | ||||
|         self.lineEdit_2 = QLineEdit(self.widget_2) | ||||
|         self.lineEdit_2.setObjectName(u"lineEdit_2") | ||||
|         self.lineEdit_2.setGeometry(QRect(50, 160, 251, 51)) | ||||
|         self.lineEdit_2.setStyleSheet(u"border:1px solid rgb(170, 0, 255);\n" | ||||
|                                       "border-radius:10px;") | ||||
|         self.pushButton_3 = QPushButton(self.widget_2) | ||||
|         self.pushButton_3.setObjectName(u"pushButton_3") | ||||
|         self.pushButton_3.setGeometry(QRect(50, 260, 251, 41)) | ||||
|         font2 = QFont() | ||||
|         font2.setPointSize(15) | ||||
|         self.pushButton_3.setFont(font2) | ||||
|         self.pushButton_3.setStyleSheet(u"QPushButton{\n" | ||||
|                                         "background-color: rgb(170, 0, 255);\n" | ||||
|                                         "border-radius:10px; \n" | ||||
|                                         "color:rgb(0, 0, 0);}\n" | ||||
|                                         "QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255));\n" | ||||
|                                         "}\n" | ||||
|                                         "QPushButton:pressed{padding-top:7px;\n" | ||||
|                                         "padding-left:7px;}") | ||||
|         self.pushButton_4 = QPushButton(Form) | ||||
|         self.pushButton_4.setObjectName(u"pushButton_4") | ||||
|         self.pushButton_4.setGeometry(QRect(760, 120, 31, 28)) | ||||
|         font3 = QFont() | ||||
|         font3.setFamily(u"Arial") | ||||
|         self.pushButton_4.setFont(font3) | ||||
|         self.pushButton_4.setStyleSheet(u"QPushButton{\n" | ||||
|                                         "background-color: rgbA(0, 0, 0, 255);\n" | ||||
|                                         "border-radius:10px; \n" | ||||
|                                         "color:rgb(0, 0, 0);}\n" | ||||
|                                         "QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255));\n" | ||||
|                                         "}\n" | ||||
|                                         "QPushButton:pressed{padding-top:7px;\n" | ||||
|                                         "padding-left:7px;}") | ||||
|         self.pushButton_5 = QPushButton(Form) | ||||
|         self.pushButton_5.setObjectName(u"pushButton_5") | ||||
|         self.pushButton_5.setGeometry(QRect(720, 120, 31, 28)) | ||||
|         font4 = QFont() | ||||
|         font4.setFamily(u"Arial") | ||||
|         font4.setPointSize(13) | ||||
|         self.pushButton_5.setFont(font4) | ||||
|         self.pushButton_5.setStyleSheet(u"QPushButton{\n" | ||||
|                                         "background-color: rgbA(0, 0, 0, 255);\n" | ||||
|                                         "border-radius:10px; \n" | ||||
|                                         "color:rgb(0, 0, 0);}\n" | ||||
|                                         "QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255));\n" | ||||
|                                         "}\n" | ||||
|                                         "QPushButton:pressed{padding-top:7px;\n" | ||||
|                                         "padding-left:7px;}") | ||||
|         self.widget_3 = QWidget(Form) | ||||
|         self.widget_3.setObjectName(u"widget_3") | ||||
|         self.widget_3.setGeometry(QRect(430, 190, 351, 351)) | ||||
|         self.lineEdit_5 = QLineEdit(self.widget_3) | ||||
|         self.lineEdit_5.setObjectName(u"lineEdit_5") | ||||
|         self.lineEdit_5.setGeometry(QRect(50, 60, 251, 51)) | ||||
|         self.lineEdit_5.setStyleSheet(u"border:1px solid rgb(170, 0, 255);\n" | ||||
|                                       "border-radius:10px;") | ||||
|         self.lineEdit_6 = QLineEdit(self.widget_3) | ||||
|         self.lineEdit_6.setObjectName(u"lineEdit_6") | ||||
|         self.lineEdit_6.setGeometry(QRect(50, 140, 251, 51)) | ||||
|         self.lineEdit_6.setStyleSheet(u"border:1px solid rgb(170, 0, 255);\n" | ||||
|                                       "border-radius:10px;") | ||||
|         self.lineEdit_7 = QLineEdit(self.widget_3) | ||||
|         self.lineEdit_7.setObjectName(u"lineEdit_7") | ||||
|         self.lineEdit_7.setGeometry(QRect(50, 220, 251, 51)) | ||||
|         self.lineEdit_7.setStyleSheet(u"border:1px solid rgb(170, 0, 255);\n" | ||||
|                                       "border-radius:10px;") | ||||
|         self.pushButton_7 = QPushButton(self.widget_3) | ||||
|         self.pushButton_7.setObjectName(u"pushButton_7") | ||||
|         self.pushButton_7.setGeometry(QRect(50, 300, 251, 41)) | ||||
|         self.pushButton_7.setFont(font2) | ||||
|         self.pushButton_7.setStyleSheet(u"QPushButton{\n" | ||||
|                                         "background-color: rgb(170, 0, 255);\n" | ||||
|                                         "border-radius:10px; \n" | ||||
|                                         "color:rgb(0, 0, 0);}\n" | ||||
|                                         "QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255));\n" | ||||
|                                         "}\n" | ||||
|                                         "QPushButton:pressed{padding-top:7px;\n" | ||||
|                                         "padding-left:7px;}") | ||||
| 
 | ||||
| 
 | ||||
|         self.label_2.raise_() | ||||
|         self.widget.raise_() | ||||
|         self.widget_2.raise_() | ||||
|         self.pushButton_4.raise_() | ||||
|         self.pushButton_5.raise_() | ||||
|         self.widget_3.raise_() | ||||
|         self.label.raise_() | ||||
| 
 | ||||
|         self.retranslateUi(Form) | ||||
| 
 | ||||
|         QMetaObject.connectSlotsByName(Form) | ||||
| 
 | ||||
|     # setupUi | ||||
| 
 | ||||
|     def retranslateUi(self, Form): | ||||
|         Form.setWindowTitle(QCoreApplication.translate("Form", u"Form", None)) | ||||
|         self.label.setText("") | ||||
|         self.label_2.setText("") | ||||
|         self.pushButton.setText(QCoreApplication.translate("Form", u"\u767b\u5f55", None)) | ||||
|         self.pushButton_2.setText(QCoreApplication.translate("Form", u"\u6ce8\u518c", None)) | ||||
|         self.lineEdit.setPlaceholderText(QCoreApplication.translate("Form", u"\u8d26\u53f7:", None)) | ||||
|         self.lineEdit_2.setPlaceholderText(QCoreApplication.translate("Form", u"\u5bc6\u7801:", None)) | ||||
|         self.pushButton_3.setText(QCoreApplication.translate("Form", u"\u767b  \u5f55", None)) | ||||
|         self.pushButton_4.setText(QCoreApplication.translate("Form", u"X", None)) | ||||
|         self.pushButton_5.setText(QCoreApplication.translate("Form", u"-", None)) | ||||
|         self.lineEdit_5.setPlaceholderText(QCoreApplication.translate("Form", u"\u8f93\u5165\u8d26\u53f7:", None)) | ||||
|         self.lineEdit_6.setPlaceholderText(QCoreApplication.translate("Form", u"\u8bbe\u7f6e\u5bc6\u7801:", None)) | ||||
|         self.lineEdit_7.setPlaceholderText(QCoreApplication.translate("Form", u"\u786e\u8ba4\u5bc6\u7801:", None)) | ||||
|         self.pushButton_7.setText(QCoreApplication.translate("Form", u"\u6ce8  \u518c", None)) | ||||
|     # retranslateUi | ||||
| @ -0,0 +1,350 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <ui version="4.0"> | ||||
|  <class>Form</class> | ||||
|  <widget class="QWidget" name="Form"> | ||||
|   <property name="geometry"> | ||||
|    <rect> | ||||
|     <x>0</x> | ||||
|     <y>0</y> | ||||
|     <width>956</width> | ||||
|     <height>795</height> | ||||
|    </rect> | ||||
|   </property> | ||||
|   <property name="windowTitle"> | ||||
|    <string>Form</string> | ||||
|   </property> | ||||
|   <widget class="QLabel" name="label"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>50</x> | ||||
|      <y>110</y> | ||||
|      <width>371</width> | ||||
|      <height>500</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <property name="styleSheet"> | ||||
|     <string notr="true">border-image: url(:/img/img/58.jpg); | ||||
| border-top-left-radius: 30px; | ||||
| border-bottom-left-radius: 30px</string> | ||||
|    </property> | ||||
|    <property name="text"> | ||||
|     <string/> | ||||
|    </property> | ||||
|   </widget> | ||||
|   <widget class="QLabel" name="label_2"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>389</x> | ||||
|      <y>110</y> | ||||
|      <width>421</width> | ||||
|      <height>500</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <property name="styleSheet"> | ||||
|     <string notr="true">border-top-right-radius: 30px; | ||||
| border-bottom-right-radius: 30px; | ||||
| background-color: rgb(255, 255, 255);</string> | ||||
|    </property> | ||||
|    <property name="text"> | ||||
|     <string/> | ||||
|    </property> | ||||
|   </widget> | ||||
|   <widget class="QWidget" name="widget" native="true"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>500</x> | ||||
|      <y>160</y> | ||||
|      <width>215</width> | ||||
|      <height>50</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <layout class="QHBoxLayout" name="horizontalLayout"> | ||||
|     <item> | ||||
|      <widget class="QPushButton" name="pushButton"> | ||||
|       <property name="font"> | ||||
|        <font> | ||||
|         <pointsize>12</pointsize> | ||||
|        </font> | ||||
|       </property> | ||||
|       <property name="styleSheet"> | ||||
|        <string notr="true">#pushButton{ | ||||
| border:none; | ||||
| color:rgb(170, 0, 255); | ||||
| } | ||||
| #pushButton:focus { | ||||
| 	color:gray; | ||||
| } | ||||
| </string> | ||||
|       </property> | ||||
|       <property name="text"> | ||||
|        <string>登录</string> | ||||
|       </property> | ||||
|      </widget> | ||||
|     </item> | ||||
|     <item> | ||||
|      <widget class="Line" name="line"> | ||||
|       <property name="font"> | ||||
|        <font> | ||||
|         <weight>75</weight> | ||||
|         <bold>true</bold> | ||||
|        </font> | ||||
|       </property> | ||||
|       <property name="orientation"> | ||||
|        <enum>Qt::Vertical</enum> | ||||
|       </property> | ||||
|      </widget> | ||||
|     </item> | ||||
|     <item> | ||||
|      <widget class="QPushButton" name="pushButton_2"> | ||||
|       <property name="font"> | ||||
|        <font> | ||||
|         <pointsize>12</pointsize> | ||||
|        </font> | ||||
|       </property> | ||||
|       <property name="styleSheet"> | ||||
|        <string notr="true">#pushButton_2{ | ||||
| border:none; | ||||
| color:rgb(170, 0, 255); | ||||
| } | ||||
| #pushButton_2:focus{ | ||||
| 	color: gray; | ||||
| }</string> | ||||
|       </property> | ||||
|       <property name="text"> | ||||
|        <string>注册</string> | ||||
|       </property> | ||||
|      </widget> | ||||
|     </item> | ||||
|    </layout> | ||||
|   </widget> | ||||
|   <widget class="QWidget" name="widget_2" native="true"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>430</x> | ||||
|      <y>230</y> | ||||
|      <width>351</width> | ||||
|      <height>361</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <widget class="QLineEdit" name="lineEdit"> | ||||
|     <property name="geometry"> | ||||
|      <rect> | ||||
|       <x>50</x> | ||||
|       <y>70</y> | ||||
|       <width>251</width> | ||||
|       <height>51</height> | ||||
|      </rect> | ||||
|     </property> | ||||
|     <property name="styleSheet"> | ||||
|      <string notr="true">border:1px solid rgb(170, 0, 255); | ||||
| border-radius:10px;</string> | ||||
|     </property> | ||||
|     <property name="placeholderText"> | ||||
|      <string>账号:</string> | ||||
|     </property> | ||||
|    </widget> | ||||
|    <widget class="QLineEdit" name="lineEdit_2"> | ||||
|     <property name="geometry"> | ||||
|      <rect> | ||||
|       <x>50</x> | ||||
|       <y>160</y> | ||||
|       <width>251</width> | ||||
|       <height>51</height> | ||||
|      </rect> | ||||
|     </property> | ||||
|     <property name="styleSheet"> | ||||
|      <string notr="true">border:1px solid rgb(170, 0, 255); | ||||
| border-radius:10px;</string> | ||||
|     </property> | ||||
|     <property name="placeholderText"> | ||||
|      <string>密码:</string> | ||||
|     </property> | ||||
|    </widget> | ||||
|    <widget class="QPushButton" name="pushButton_3"> | ||||
|     <property name="geometry"> | ||||
|      <rect> | ||||
|       <x>50</x> | ||||
|       <y>260</y> | ||||
|       <width>251</width> | ||||
|       <height>41</height> | ||||
|      </rect> | ||||
|     </property> | ||||
|     <property name="font"> | ||||
|      <font> | ||||
|       <pointsize>15</pointsize> | ||||
|      </font> | ||||
|     </property> | ||||
|     <property name="styleSheet"> | ||||
|      <string notr="true">QPushButton{ | ||||
| background-color: rgb(170, 0, 255); | ||||
| border-radius:10px;  | ||||
| color:rgb(0, 0, 0);} | ||||
| QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255)); | ||||
| } | ||||
| QPushButton:pressed{padding-top:7px; | ||||
| padding-left:7px;}</string> | ||||
|     </property> | ||||
|     <property name="text"> | ||||
|      <string>登  录</string> | ||||
|     </property> | ||||
|    </widget> | ||||
|   </widget> | ||||
|   <widget class="QPushButton" name="pushButton_4"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>760</x> | ||||
|      <y>120</y> | ||||
|      <width>31</width> | ||||
|      <height>28</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <property name="font"> | ||||
|     <font> | ||||
|      <family>Arial</family> | ||||
|     </font> | ||||
|    </property> | ||||
|    <property name="styleSheet"> | ||||
|     <string notr="true">QPushButton{ | ||||
| background-color: rgbA(0, 0, 0, 255); | ||||
| border-radius:10px;  | ||||
| color:rgb(0, 0, 0);} | ||||
| QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255)); | ||||
| } | ||||
| QPushButton:pressed{padding-top:7px; | ||||
| padding-left:7px;}</string> | ||||
|    </property> | ||||
|    <property name="text"> | ||||
|     <string>X</string> | ||||
|    </property> | ||||
|   </widget> | ||||
|   <widget class="QPushButton" name="pushButton_5"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>720</x> | ||||
|      <y>120</y> | ||||
|      <width>31</width> | ||||
|      <height>28</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <property name="font"> | ||||
|     <font> | ||||
|      <family>Arial</family> | ||||
|      <pointsize>13</pointsize> | ||||
|     </font> | ||||
|    </property> | ||||
|    <property name="styleSheet"> | ||||
|     <string notr="true">QPushButton{ | ||||
| background-color: rgbA(0, 0, 0, 255); | ||||
| border-radius:10px;  | ||||
| color:rgb(0, 0, 0);} | ||||
| QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255)); | ||||
| } | ||||
| QPushButton:pressed{padding-top:7px; | ||||
| padding-left:7px;}</string> | ||||
|    </property> | ||||
|    <property name="text"> | ||||
|     <string>-</string> | ||||
|    </property> | ||||
|   </widget> | ||||
|   <widget class="QWidget" name="widget_3" native="true"> | ||||
|    <property name="geometry"> | ||||
|     <rect> | ||||
|      <x>430</x> | ||||
|      <y>190</y> | ||||
|      <width>351</width> | ||||
|      <height>351</height> | ||||
|     </rect> | ||||
|    </property> | ||||
|    <widget class="QLineEdit" name="lineEdit_5"> | ||||
|     <property name="geometry"> | ||||
|      <rect> | ||||
|       <x>50</x> | ||||
|       <y>60</y> | ||||
|       <width>251</width> | ||||
|       <height>51</height> | ||||
|      </rect> | ||||
|     </property> | ||||
|     <property name="styleSheet"> | ||||
|      <string notr="true">border:1px solid rgb(170, 0, 255); | ||||
| border-radius:10px;</string> | ||||
|     </property> | ||||
|     <property name="placeholderText"> | ||||
|      <string>输入账号:</string> | ||||
|     </property> | ||||
|    </widget> | ||||
|    <widget class="QLineEdit" name="lineEdit_6"> | ||||
|     <property name="geometry"> | ||||
|      <rect> | ||||
|       <x>50</x> | ||||
|       <y>140</y> | ||||
|       <width>251</width> | ||||
|       <height>51</height> | ||||
|      </rect> | ||||
|     </property> | ||||
|     <property name="styleSheet"> | ||||
|      <string notr="true">border:1px solid rgb(170, 0, 255); | ||||
| border-radius:10px;</string> | ||||
|     </property> | ||||
|     <property name="placeholderText"> | ||||
|      <string>设置密码:</string> | ||||
|     </property> | ||||
|    </widget> | ||||
|    <widget class="QLineEdit" name="lineEdit_7"> | ||||
|     <property name="geometry"> | ||||
|      <rect> | ||||
|       <x>50</x> | ||||
|       <y>220</y> | ||||
|       <width>251</width> | ||||
|       <height>51</height> | ||||
|      </rect> | ||||
|     </property> | ||||
|     <property name="styleSheet"> | ||||
|      <string notr="true">border:1px solid rgb(170, 0, 255); | ||||
| border-radius:10px;</string> | ||||
|     </property> | ||||
|     <property name="placeholderText"> | ||||
|      <string>确认密码:</string> | ||||
|     </property> | ||||
|    </widget> | ||||
|    <widget class="QPushButton" name="pushButton_7"> | ||||
|     <property name="geometry"> | ||||
|      <rect> | ||||
|       <x>50</x> | ||||
|       <y>300</y> | ||||
|       <width>251</width> | ||||
|       <height>41</height> | ||||
|      </rect> | ||||
|     </property> | ||||
|     <property name="font"> | ||||
|      <font> | ||||
|       <pointsize>15</pointsize> | ||||
|      </font> | ||||
|     </property> | ||||
|     <property name="styleSheet"> | ||||
|      <string notr="true">QPushButton{ | ||||
| background-color: rgb(170, 0, 255); | ||||
| border-radius:10px;  | ||||
| color:rgb(0, 0, 0);} | ||||
| QPushButton:hover{background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(191, 136, 252, 255), stop:1 rgba(255, 255, 255, 255)); | ||||
| } | ||||
| QPushButton:pressed{padding-top:7px; | ||||
| padding-left:7px;}</string> | ||||
|     </property> | ||||
|     <property name="text"> | ||||
|      <string>注  册</string> | ||||
|     </property> | ||||
|    </widget> | ||||
|   </widget> | ||||
|   <zorder>label_2</zorder> | ||||
|   <zorder>widget</zorder> | ||||
|   <zorder>widget_2</zorder> | ||||
|   <zorder>pushButton_4</zorder> | ||||
|   <zorder>pushButton_5</zorder> | ||||
|   <zorder>widget_3</zorder> | ||||
|   <zorder>label</zorder> | ||||
|  </widget> | ||||
|  <resources> | ||||
|   <include location="res.qrc"/> | ||||
|  </resources> | ||||
|  <connections/> | ||||
| </ui> | ||||
| @ -0,0 +1,65 @@ | ||||
| import sys | ||||
| from PySide2.QtCore import Qt | ||||
| from PySide2.QtGui import QCursor | ||||
| from PySide2.QtWidgets import QApplication, QMainWindow | ||||
| from login import * | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| class MyWindow(QMainWindow, Ui_Form): | ||||
| 
 | ||||
|     def __init__(self, parent=None): | ||||
|         super(MyWindow, self).__init__(parent) | ||||
|         self.setupUi(self) | ||||
|         self.change_widget2() | ||||
|         # 链接到函数 | ||||
|         self.pushButton.clicked.connect(self.change_widget2) | ||||
|         self.pushButton_2.clicked.connect(self.change_widget3) | ||||
|         self.pushButton_4.clicked.connect(self.quit) | ||||
|         self.pushButton_5.clicked.connect(self.mini) | ||||
| 
 | ||||
|     # 退出 | ||||
|     def quit(self): | ||||
|         self.close() | ||||
|         sys.exit() | ||||
| 
 | ||||
|     # 最小化 | ||||
|     def mini(self): | ||||
|         self.showMinimized() | ||||
| 
 | ||||
|     # 窗口切换 | ||||
|     def change_widget3(self): | ||||
|         self.widget_2.hide() | ||||
|         self.widget_3.show() | ||||
| 
 | ||||
|     def change_widget2(self): | ||||
|         self.widget_3.hide() | ||||
|         self.widget_2.show() | ||||
| 
 | ||||
| 
 | ||||
|     # 重写鼠标事件 | ||||
|     def mousePressEvent(self, event): | ||||
|         if event.button() == Qt.LeftButton: | ||||
|             self.m_flag = True | ||||
|             self.m_Position = event.globalPos() - self.pos()  | ||||
|             event.accept() | ||||
|             self.setCursor(QCursor(Qt.OpenHandCursor))  | ||||
| 
 | ||||
|     def mouseMoveEvent(self, QMouseEvent): | ||||
|         if Qt.LeftButton and self.m_flag: | ||||
|             self.move(QMouseEvent.globalPos() - self.m_Position)   | ||||
|             QMouseEvent.accept() | ||||
| 
 | ||||
|     def mouseReleaseEvent(self, QMouseEvent): | ||||
|         self.m_flag = False | ||||
|         self.setCursor(QCursor(Qt.ArrowCursor)) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     app = QApplication(sys.argv) | ||||
|     login = MyWindow() | ||||
|     login.show() | ||||
|     sys.exit(app.exec_()) | ||||
| @ -0,0 +1,5 @@ | ||||
| <RCC> | ||||
|   <qresource prefix="img"> | ||||
|     <file>img/58.jpg</file> | ||||
|   </qresource> | ||||
| </RCC> | ||||