-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinformation.py
92 lines (83 loc) · 3.65 KB
/
information.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'information.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import QIcon, QPixmap
import res , sys , os
#import database
class Ui_infoWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1014, 758)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setGeometry(QtCore.QRect(0, 10, 1011, 721))
self.widget.setStyleSheet("QPushButton#pushButton{\n"
" background-color : qlineargradient(spread:pad,x1:0,y1:0.505682, x2:1, y2:0.477, stop:0 rgba(11,131,120,219), stop:1 rgba(85,98,112,226));\n"
" color: rgba(255,255,255,210);\n"
" border-radius:5px;\n"
"}\n"
"\n"
"QPushButton#pushButton:hover{\n"
" background-color : qlineargradient(spread:pad,x1:0,y1:0.505682, x2:1, y2:0.477, stop:0 rgba(11,131,120,219), stop:1 rgba(85,98,112,226));\n"
"}\n"
"\n"
"QPushButton#pushButton:pressed{\n"
" padding-left:5px;\n"
" padding-top:5px;\n"
" background-color : rgba(150,123,111,255);\n"
"}")
self.widget.setObjectName("widget")
self.picLabel = QtWidgets.QLabel(self.widget)
self.picLabel.setGeometry(QtCore.QRect(20, 70, 471, 611))
self.picLabel.setText("")
self.picLabel.setObjectName("picLabel")
# pixmap = QPixmap(os.path.dirname(os.path.abspath(__file__)) + '\\img\\' + )
# self.picLabel.setPixmap(pixmap)
labelFont = QtGui.QFont()
labelFont.setPointSize(14)
labelFont.setBold(True)
labelFont.setWeight(75)
self.label = QtWidgets.QLabel(self.widget)
self.label.setGeometry(QtCore.QRect(500, 70, 471, 611))
self.label.setStyleSheet("background-color : rgb(200,200,200)")
self.label.setText("")
self.label.setFont(labelFont)
self.label.setObjectName("label")
self.label_3 = QtWidgets.QLabel(self.widget)
self.label_3.setGeometry(QtCore.QRect(620, 10, 261, 51))
font = QtGui.QFont()
font.setPointSize(20)
font.setBold(True)
font.setWeight(75)
self.label_3.setFont(font)
self.label_3.setLayoutDirection(QtCore.Qt.LeftToRight)
self.label_3.setStyleSheet("color : rgb(0,0,0,200);")
self.label_3.setObjectName("label_3")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1014, 26))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
# print(self.passportnum)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label_3.setText(_translate("MainWindow", "Passenger Info"))
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
ex = Ui_infoWindow()
w = QtWidgets.QMainWindow()
ex.setupUi(w)
w.show()
sys.exit(app.exec_())