-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_dialog.py
151 lines (142 loc) · 8.08 KB
/
main_dialog.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main_dialog.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
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(372, 562)
self.groupBox = QtWidgets.QGroupBox(Dialog)
self.groupBox.setGeometry(QtCore.QRect(10, 30, 351, 181))
self.groupBox.setObjectName("groupBox")
self.label_5 = QtWidgets.QLabel(self.groupBox)
self.label_5.setGeometry(QtCore.QRect(10, 30, 331, 16))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.label_6 = QtWidgets.QLabel(self.groupBox)
self.label_6.setGeometry(QtCore.QRect(10, 50, 341, 16))
self.label_6.setObjectName("label_6")
self.lineEdit = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit.setGeometry(QtCore.QRect(50, 80, 101, 21))
self.lineEdit.setObjectName("lineEdit")
self.label = QtWidgets.QLabel(self.groupBox)
self.label.setGeometry(QtCore.QRect(0, 80, 41, 20))
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.groupBox)
self.label_2.setGeometry(QtCore.QRect(0, 110, 41, 20))
self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_2.setObjectName("label_2")
self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit_2.setGeometry(QtCore.QRect(50, 110, 101, 21))
self.lineEdit_2.setObjectName("lineEdit_2")
self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit_3.setGeometry(QtCore.QRect(50, 140, 101, 21))
self.lineEdit_3.setObjectName("lineEdit_3")
self.label_3 = QtWidgets.QLabel(self.groupBox)
self.label_3.setGeometry(QtCore.QRect(0, 140, 41, 20))
self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.groupBox)
self.label_4.setGeometry(QtCore.QRect(180, 80, 41, 20))
self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_4.setObjectName("label_4")
self.lineEdit_4 = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit_4.setGeometry(QtCore.QRect(230, 80, 101, 21))
self.lineEdit_4.setObjectName("lineEdit_4")
self.lineEdit_5 = QtWidgets.QLineEdit(self.groupBox)
self.lineEdit_5.setGeometry(QtCore.QRect(230, 110, 101, 21))
self.lineEdit_5.setObjectName("lineEdit_5")
self.label_7 = QtWidgets.QLabel(self.groupBox)
self.label_7.setGeometry(QtCore.QRect(160, 110, 61, 20))
self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_7.setObjectName("label_7")
self.label_8 = QtWidgets.QLabel(Dialog)
self.label_8.setGeometry(QtCore.QRect(10, 10, 161, 16))
self.label_8.setObjectName("label_8")
self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
self.groupBox_2.setGeometry(QtCore.QRect(10, 220, 351, 91))
self.groupBox_2.setObjectName("groupBox_2")
self.label_9 = QtWidgets.QLabel(self.groupBox_2)
self.label_9.setGeometry(QtCore.QRect(10, 30, 331, 16))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_9.setFont(font)
self.label_9.setObjectName("label_9")
self.dateTimeEdit = QtWidgets.QDateTimeEdit(self.groupBox_2)
self.dateTimeEdit.setGeometry(QtCore.QRect(10, 50, 194, 22))
self.dateTimeEdit.setDateTime(QtCore.QDateTime(QtCore.QDate(2022, 1, 27), QtCore.QTime(10, 0, 0)))
self.dateTimeEdit.setObjectName("dateTimeEdit")
self.groupBox_3 = QtWidgets.QGroupBox(Dialog)
self.groupBox_3.setGeometry(QtCore.QRect(10, 320, 351, 231))
self.groupBox_3.setObjectName("groupBox_3")
self.label_10 = QtWidgets.QLabel(self.groupBox_3)
self.label_10.setGeometry(QtCore.QRect(10, 30, 181, 16))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_10.setFont(font)
self.label_10.setObjectName("label_10")
self.pushButton = QtWidgets.QPushButton(self.groupBox_3)
self.pushButton.setGeometry(QtCore.QRect(190, 25, 113, 32))
self.pushButton.setAutoDefault(False)
self.pushButton.setObjectName("pushButton")
self.label_11 = QtWidgets.QLabel(self.groupBox_3)
self.label_11.setGeometry(QtCore.QRect(10, 60, 201, 16))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.label_11.setFont(font)
self.label_11.setObjectName("label_11")
self.textBrowser = QtWidgets.QTextBrowser(self.groupBox_3)
self.textBrowser.setGeometry(QtCore.QRect(10, 90, 331, 121))
self.textBrowser.setOpenExternalLinks(True)
self.textBrowser.setOpenLinks(False)
self.textBrowser.setObjectName("textBrowser")
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.groupBox.setTitle(_translate("Dialog", "1. 기본 정보 입력"))
self.label_5.setText(_translate("Dialog", "더 나은 현실감을 위해 이름이나 학번 등을 지정해줄 수 있습니다. "))
self.label_6.setText(_translate("Dialog", "설정하지 않아도 기본값(홍길동)이 적용됩니다. "))
self.lineEdit.setText(_translate("Dialog", "홍길동"))
self.label.setText(_translate("Dialog", "이름:"))
self.label_2.setText(_translate("Dialog", "학번:"))
self.lineEdit_2.setText(_translate("Dialog", "202220879"))
self.lineEdit_3.setText(_translate("Dialog", "무화과"))
self.label_3.setText(_translate("Dialog", "학과:"))
self.label_4.setText(_translate("Dialog", "학년:"))
self.lineEdit_4.setText(_translate("Dialog", "2"))
self.lineEdit_5.setText(_translate("Dialog", "18"))
self.label_7.setText(_translate("Dialog", "최대학점수:"))
self.label_8.setText(_translate("Dialog", "아주대 수강신청 연습용 사이트"))
self.groupBox_2.setTitle(_translate("Dialog", "2. 수강신청 시작 시간 입력"))
self.label_9.setText(_translate("Dialog", "수강신청 페이지가 열리는 시간을 설정합니다."))
self.dateTimeEdit.setDisplayFormat(_translate("Dialog", "yyyy. M. d. AP h:mm"))
self.groupBox_3.setTitle(_translate("Dialog", "3. 웹서버 시작"))
self.label_10.setText(_translate("Dialog", "버튼을 누르면 웹 서버가 열립니다. "))
self.pushButton.setText(_translate("Dialog", "서버 시작"))
self.label_11.setText(_translate("Dialog", "서버 시작 후 아래 링크로 접속하세요. "))
self.textBrowser.setHtml(_translate("Dialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'.AppleSystemUIFont\'; font-size:13pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Dialog = QtWidgets.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())