-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutUs.py
114 lines (106 loc) · 3.93 KB
/
AboutUs.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Form implementation generated from reading ui file 'uiAboutUs.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.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_uiAboutUs(object):
def setupUi(self, uiHomePage):
uiHomePage.setObjectName("uiHomePage")
uiHomePage.resize(495, 659)
uiHomePage.setAutoFillBackground(False)
uiHomePage.setStyleSheet("background-color: rgb(27, 29, 35);")
uiHomePage.setWindowIcon(QtGui.QIcon('icon.png'))
self.label = QtWidgets.QLabel(uiHomePage)
self.label.setGeometry(QtCore.QRect(150, 30, 211, 51))
font = QtGui.QFont()
font.setFamily("Cloud Light")
font.setPointSize(26)
self.label.setFont(font)
self.label.setStyleSheet("QLabel {\n"
" Color: #FFF\n"
"}")
self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.label.setObjectName("label")
self.closeButton = QtWidgets.QPushButton(uiHomePage)
self.closeButton.setGeometry(QtCore.QRect(350, 600, 131, 41))
font = QtGui.QFont()
font.setFamily("Cloud Light")
font.setPointSize(12)
self.closeButton.setFont(font)
self.closeButton.setStyleSheet("QPushButton {\n"
" border: 2px solid rgb(37,39,48);\n"
" border-radius: 20px;\n"
" color: #FFF;\n"
" padding-left: 20px;\n"
" padding-right: 20px;\n"
"}\n"
"QPushButton:hover {\n"
" border: 2px solid rgb(48, 50, 62);\n"
"}\n"
"QPushButton:hover:pressed\n"
"{\n"
" border: 2px solid rgb(255, 73, 73);\n"
"}")
self.closeButton.setObjectName("closeButton")
self.name1 = QtWidgets.QPushButton(uiHomePage)
self.name1.setGeometry(QtCore.QRect(50, 120, 411, 51))
font = QtGui.QFont()
font.setFamily("Cloud Light")
font.setPointSize(14)
self.name1.setFont(font)
self.name1.setStyleSheet("QPushButton {\n"
" border: 2px solid rgb(37,39,48);\n"
" border-radius: 20px;\n"
" color: #FFF;\n"
" padding-left: 20px;\n"
" padding-right: 20px;\n"
"}\n"
"QPushButton:hover {\n"
" border: 2px solid rgb(48, 50, 62);\n"
"}\n"
"QPushButton:hover:pressed\n"
"{\n"
" border: 2px solid rgb(255, 73, 73);\n"
"}")
self.name1.setObjectName("name1")
self.name2 = QtWidgets.QPushButton(uiHomePage)
self.name2.setGeometry(QtCore.QRect(50, 200, 411, 51))
font = QtGui.QFont()
font.setFamily("Cloud Light")
font.setPointSize(14)
self.name2.setFont(font)
self.name2.setStyleSheet("QPushButton {\n"
" border: 2px solid rgb(37,39,48);\n"
" border-radius: 20px;\n"
" color: #FFF;\n"
" padding-left: 20px;\n"
" padding-right: 20px;\n"
"}\n"
"QPushButton:hover {\n"
" border: 2px solid rgb(48, 50, 62);\n"
"}\n"
"QPushButton:hover:pressed\n"
"{\n"
" border: 2px solid rgb(255, 73, 73);\n"
"}")
self.name2.setObjectName("name2")
self.retranslateUi(uiHomePage)
QtCore.QMetaObject.connectSlotsByName(uiHomePage)
def retranslateUi(self, uiHomePage):
_translate = QtCore.QCoreApplication.translate
uiHomePage.setWindowTitle(_translate("uiHomePage", "About us"))
self.label.setText(_translate("uiHomePage", "About us"))
self.closeButton.setText(_translate("uiHomePage", "ปิดหน้าต่าง"))
self.name1.setText(_translate("uiHomePage", "นายสรัล วรรณภูงา 116310400136-2"))
self.name2.setText(_translate("uiHomePage", "นายพายุพัด สมพรสุขสวัสดิ์ 116310400125-5"))
self.closeButton.clicked.connect(uiHomePage.close)
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
uiHomePage = QtWidgets.QDialog()
ui = Ui_uiAboutUs()
ui.setupUi(uiHomePage)
uiHomePage.show()
sys.exit(app.exec())