# Form implementation generated from reading ui file 'D:\fairyJY\py\flightinfo2\flightinfo\UI\login.ui'
#
# Created by: PyQt6 UI code generator 6.4.0
#
# 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.


import base64

from PyQt6 import QtCore , QtWidgets
from PyQt6.QtCore import QByteArray
from PyQt6.QtGui import QIcon , QPixmap


class Ui_login(object):
    def setupUi(self, login):
        icon_base64 = """
                                                                                                        [encoded data, 360532 characters]

        """

        # 从Base64创建图标
        icon_data = base64.b64decode(icon_base64)
        pixmap = QPixmap()
        pixmap.loadFromData(QByteArray(icon_data))
        icon = QIcon(pixmap)

        login.setObjectName("login")
        login.setWindowModality(QtCore.Qt.WindowModality.NonModal)
        login.resize(360, 140)
        login.setMinimumSize(QtCore.QSize(360, 140))
        login.setMaximumSize(QtCore.QSize(360, 140))
        login.setWindowIcon(icon)
        self.gridLayout = QtWidgets.QGridLayout(login)
        self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize)
        self.gridLayout.setObjectName("gridLayout")
        self.lineEditPassword = QtWidgets.QLineEdit(login)
        self.lineEditPassword.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password)
        self.lineEditPassword.setObjectName("lineEditPassword")
        self.gridLayout.addWidget(self.lineEditPassword, 1, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(login)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.lineEditUser = QtWidgets.QLineEdit(login)
        self.lineEditUser.setObjectName("lineEditUser")
        self.gridLayout.addWidget(self.lineEditUser, 0, 1, 1, 1)
        self.label = QtWidgets.QLabel(login)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.pushButton = QtWidgets.QPushButton(login)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout.addWidget(self.pushButton, 2, 1, 1, 1)

        self.retranslateUi(login)
        QtCore.QMetaObject.connectSlotsByName(login)
        login.setTabOrder(self.lineEditUser, self.lineEditPassword)
        login.setTabOrder(self.lineEditPassword, self.pushButton)

    def retranslateUi(self, login):
        _translate = QtCore.QCoreApplication.translate
        login.setWindowTitle(_translate("login", "登录"))
        self.label_2.setText(_translate("login", "密码"))
        self.label.setText(_translate("login", "用户名"))
        self.pushButton.setText(_translate("login", "登录"))
