This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_from_ui.py
155 lines (146 loc) · 8.6 KB
/
main_from_ui.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
152
153
154
155
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainUI_v2.ui'
#
# Created by: PyQt5 UI code generator 5.15.3
#
# 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(574, 420)
Dialog.setMaximumSize(QtCore.QSize(16777215, 16777215))
Dialog.setStatusTip("")
Dialog.setAutoFillBackground(False)
self.verticalLayout_11 = QtWidgets.QVBoxLayout(Dialog)
self.verticalLayout_11.setObjectName("verticalLayout_11")
self.verticalLayout_10 = QtWidgets.QVBoxLayout()
self.verticalLayout_10.setSpacing(3)
self.verticalLayout_10.setObjectName("verticalLayout_10")
self.gridLayout_7 = QtWidgets.QGridLayout()
self.gridLayout_7.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
self.gridLayout_7.setHorizontalSpacing(10)
self.gridLayout_7.setVerticalSpacing(0)
self.gridLayout_7.setObjectName("gridLayout_7")
spacerItem = QtWidgets.QSpacerItem(20, 22, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.gridLayout_7.addItem(spacerItem, 1, 1, 1, 1)
self.openFile_btn = QtWidgets.QPushButton(Dialog)
self.openFile_btn.setObjectName("openFile_btn")
self.gridLayout_7.addWidget(self.openFile_btn, 0, 1, 1, 1)
self.FileDIR_Browser = QtWidgets.QTextBrowser(Dialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Ignored)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.FileDIR_Browser.sizePolicy().hasHeightForWidth())
self.FileDIR_Browser.setSizePolicy(sizePolicy)
self.FileDIR_Browser.setObjectName("FileDIR_Browser")
self.gridLayout_7.addWidget(self.FileDIR_Browser, 0, 0, 2, 1)
self.verticalLayout_10.addLayout(self.gridLayout_7)
self.verticalLayout_7 = QtWidgets.QVBoxLayout()
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
self.horizontalLayout_11.setSpacing(10)
self.horizontalLayout_11.setObjectName("horizontalLayout_11")
self.Query_LineEdit = QtWidgets.QLineEdit(Dialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Query_LineEdit.sizePolicy().hasHeightForWidth())
self.Query_LineEdit.setSizePolicy(sizePolicy)
self.Query_LineEdit.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
self.Query_LineEdit.setStatusTip("")
self.Query_LineEdit.setObjectName("Query_LineEdit")
self.horizontalLayout_11.addWidget(self.Query_LineEdit)
self.AddQuery_btn = QtWidgets.QPushButton(Dialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AddQuery_btn.sizePolicy().hasHeightForWidth())
self.AddQuery_btn.setSizePolicy(sizePolicy)
self.AddQuery_btn.setDefault(True)
self.AddQuery_btn.setObjectName("AddQuery_btn")
self.horizontalLayout_11.addWidget(self.AddQuery_btn)
self.verticalLayout_7.addLayout(self.horizontalLayout_11)
self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
self.horizontalLayout_10.setContentsMargins(-1, 19, -1, 14)
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
self.CheckQuery_btn = QtWidgets.QPushButton(Dialog)
self.CheckQuery_btn.setObjectName("CheckQuery_btn")
self.horizontalLayout_10.addWidget(self.CheckQuery_btn)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_10.addItem(spacerItem1)
self.activateFunc_btn = QtWidgets.QPushButton(Dialog)
self.activateFunc_btn.setObjectName("activateFunc_btn")
self.horizontalLayout_10.addWidget(self.activateFunc_btn)
spacerItem2 = QtWidgets.QSpacerItem(338, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_10.addItem(spacerItem2)
self.verticalLayout_7.addLayout(self.horizontalLayout_10)
self.verticalLayout_10.addLayout(self.verticalLayout_7)
self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
self.horizontalLayout_13.setContentsMargins(-1, 1, -1, 1)
self.horizontalLayout_13.setSpacing(0)
self.horizontalLayout_13.setObjectName("horizontalLayout_13")
self.SelectKeyword_cbox = QtWidgets.QComboBox(Dialog)
self.SelectKeyword_cbox.setObjectName("SelectKeyword_cbox")
self.horizontalLayout_13.addWidget(self.SelectKeyword_cbox)
spacerItem3 = QtWidgets.QSpacerItem(88, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_13.addItem(spacerItem3)
self.verticalLayout_10.addLayout(self.horizontalLayout_13)
self.verticalLayout_11.addLayout(self.verticalLayout_10)
self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
self.horizontalLayout_14.setObjectName("horizontalLayout_14")
self.ViewResult_table = QtWidgets.QTableWidget(Dialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ViewResult_table.sizePolicy().hasHeightForWidth())
self.ViewResult_table.setSizePolicy(sizePolicy)
self.ViewResult_table.setObjectName("ViewResult_table")
self.ViewResult_table.setColumnCount(0)
self.ViewResult_table.setRowCount(0)
self.horizontalLayout_14.addWidget(self.ViewResult_table)
self.verticalLayout_9 = QtWidgets.QVBoxLayout()
self.verticalLayout_9.setObjectName("verticalLayout_9")
self.verticalLayout_8 = QtWidgets.QVBoxLayout()
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.FlagEditable_chbox = QtWidgets.QCheckBox(Dialog)
self.FlagEditable_chbox.setObjectName("FlagEditable_chbox")
self.verticalLayout_8.addWidget(self.FlagEditable_chbox)
self.changeAdmit_btn = QtWidgets.QPushButton(Dialog)
self.changeAdmit_btn.setAutoDefault(True)
self.changeAdmit_btn.setObjectName("changeAdmit_btn")
self.verticalLayout_8.addWidget(self.changeAdmit_btn)
self.verticalLayout_9.addLayout(self.verticalLayout_8)
spacerItem4 = QtWidgets.QSpacerItem(20, 88, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
self.verticalLayout_9.addItem(spacerItem4)
self.SaveAsFIle_btn = QtWidgets.QPushButton(Dialog)
self.SaveAsFIle_btn.setObjectName("SaveAsFIle_btn")
self.verticalLayout_9.addWidget(self.SaveAsFIle_btn)
self.horizontalLayout_14.addLayout(self.verticalLayout_9)
self.verticalLayout_11.addLayout(self.horizontalLayout_14)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "GetAllFromVIew"))
self.openFile_btn.setText(_translate("Dialog", "Open"))
self.Query_LineEdit.setToolTip(_translate("Dialog", "Input Search Keyword"))
self.Query_LineEdit.setPlaceholderText(_translate("Dialog", "Keyword"))
self.AddQuery_btn.setText(_translate("Dialog", "Add"))
self.CheckQuery_btn.setToolTip(_translate("Dialog", "Keywords확인 및 변경"))
self.CheckQuery_btn.setText(_translate("Dialog", "CheckQuery"))
self.activateFunc_btn.setToolTip(_translate("Dialog", "작업시작"))
self.activateFunc_btn.setText(_translate("Dialog", "Start"))
self.FlagEditable_chbox.setToolTip(_translate("Dialog", "더블클릭시 수정가능"))
self.FlagEditable_chbox.setText(_translate("Dialog", "결과 수정"))
self.changeAdmit_btn.setText(_translate("Dialog", "적용"))
self.SaveAsFIle_btn.setText(_translate("Dialog", "Save As File"))
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_())