hytos / DTI_PID / DTI_PID / MainWindow_UI.py @ a3aa5583
이력 | 보기 | 이력해설 | 다운로드 (33.3 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
|
3 |
# Form implementation generated from reading ui file './UI/MainWindow.ui'
|
4 |
#
|
5 |
# Created by: PyQt5 UI code generator 5.11.3
|
6 |
#
|
7 |
# WARNING! All changes made in this file will be lost!
|
8 |
|
9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
10 |
|
11 |
class Ui_MainWindow(object): |
12 |
def setupUi(self, MainWindow): |
13 |
MainWindow.setObjectName("MainWindow")
|
14 |
MainWindow.resize(1280, 888) |
15 |
font = QtGui.QFont() |
16 |
font.setFamily("맑은 고딕")
|
17 |
font.setBold(True)
|
18 |
font.setWeight(75)
|
19 |
MainWindow.setFont(font) |
20 |
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
21 |
self.centralwidget.setObjectName("centralwidget") |
22 |
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) |
23 |
self.gridLayout.setObjectName("gridLayout") |
24 |
self.verticalLayout = QtWidgets.QVBoxLayout()
|
25 |
self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
|
26 |
self.verticalLayout.setObjectName("verticalLayout") |
27 |
self.label_spinner = QtWidgets.QLabel(self.centralwidget) |
28 |
self.label_spinner.setText("") |
29 |
self.label_spinner.setAlignment(QtCore.Qt.AlignCenter)
|
30 |
self.label_spinner.setObjectName("label_spinner") |
31 |
self.verticalLayout.addWidget(self.label_spinner) |
32 |
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) |
33 |
MainWindow.setCentralWidget(self.centralwidget)
|
34 |
self.menubar = QtWidgets.QMenuBar(MainWindow)
|
35 |
self.menubar.setGeometry(QtCore.QRect(0, 0, 1280, 21)) |
36 |
self.menubar.setObjectName("menubar") |
37 |
self.menu = QtWidgets.QMenu(self.menubar) |
38 |
self.menu.setObjectName("menu") |
39 |
self.menuTheme = QtWidgets.QMenu(self.menu) |
40 |
self.menuTheme.setObjectName("menuTheme") |
41 |
self.menuLanguage = QtWidgets.QMenu(self.menu) |
42 |
self.menuLanguage.setObjectName("menuLanguage") |
43 |
self.menu_2 = QtWidgets.QMenu(self.menubar) |
44 |
self.menu_2.setObjectName("menu_2") |
45 |
self.menu_3 = QtWidgets.QMenu(self.menubar) |
46 |
self.menu_3.setObjectName("menu_3") |
47 |
self.menu_4 = QtWidgets.QMenu(self.menubar) |
48 |
self.menu_4.setObjectName("menu_4") |
49 |
self.menu_5 = QtWidgets.QMenu(self.menubar) |
50 |
self.menu_5.setObjectName("menu_5") |
51 |
MainWindow.setMenuBar(self.menubar)
|
52 |
self.statusbar = QtWidgets.QStatusBar(MainWindow)
|
53 |
self.statusbar.setObjectName("statusbar") |
54 |
MainWindow.setStatusBar(self.statusbar)
|
55 |
self.toolBar = QtWidgets.QToolBar(MainWindow)
|
56 |
font = QtGui.QFont() |
57 |
font.setFamily("맑은 고딕")
|
58 |
font.setBold(True)
|
59 |
font.setWeight(75)
|
60 |
self.toolBar.setFont(font)
|
61 |
self.toolBar.setIconSize(QtCore.QSize(32, 32)) |
62 |
self.toolBar.setObjectName("toolBar") |
63 |
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
|
64 |
self.dockWidget = QtWidgets.QDockWidget(MainWindow)
|
65 |
self.dockWidget.setMinimumSize(QtCore.QSize(200, 115)) |
66 |
self.dockWidget.setObjectName("dockWidget") |
67 |
self.dockWidgetContents = QtWidgets.QWidget()
|
68 |
self.dockWidgetContents.setObjectName("dockWidgetContents") |
69 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.dockWidgetContents) |
70 |
self.gridLayout_2.setObjectName("gridLayout_2") |
71 |
self.tabWidget = QtWidgets.QTabWidget(self.dockWidgetContents) |
72 |
self.tabWidget.setObjectName("tabWidget") |
73 |
self.Symbol = QtWidgets.QWidget()
|
74 |
self.Symbol.setObjectName("Symbol") |
75 |
self.gridLayout_3 = QtWidgets.QGridLayout(self.Symbol) |
76 |
self.gridLayout_3.setObjectName("gridLayout_3") |
77 |
self.symbolTabVerticalLayout = QtWidgets.QVBoxLayout()
|
78 |
self.symbolTabVerticalLayout.setObjectName("symbolTabVerticalLayout") |
79 |
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
80 |
self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
81 |
self.pushButtonCreateSymbol = QtWidgets.QPushButton(self.Symbol) |
82 |
self.pushButtonCreateSymbol.setMaximumSize(QtCore.QSize(32, 16777215)) |
83 |
self.pushButtonCreateSymbol.setLayoutDirection(QtCore.Qt.LeftToRight)
|
84 |
self.pushButtonCreateSymbol.setObjectName("pushButtonCreateSymbol") |
85 |
self.horizontalLayout_3.addWidget(self.pushButtonCreateSymbol) |
86 |
self.pushButtonDetectSymbol = QtWidgets.QPushButton(self.Symbol) |
87 |
self.pushButtonDetectSymbol.setMaximumSize(QtCore.QSize(130, 16777215)) |
88 |
self.pushButtonDetectSymbol.setObjectName("pushButtonDetectSymbol") |
89 |
self.horizontalLayout_3.addWidget(self.pushButtonDetectSymbol) |
90 |
self.symbolTabVerticalLayout.addLayout(self.horizontalLayout_3) |
91 |
self.gridLayout_3.addLayout(self.symbolTabVerticalLayout, 0, 0, 1, 1) |
92 |
self.tabWidget.addTab(self.Symbol, "") |
93 |
self.gridLayout_2.addWidget(self.tabWidget, 0, 0, 1, 1) |
94 |
self.dockWidget.setWidget(self.dockWidgetContents) |
95 |
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget) |
96 |
self.dockWidgetObjectExplorer = QtWidgets.QDockWidget(MainWindow)
|
97 |
self.dockWidgetObjectExplorer.setMinimumSize(QtCore.QSize(300, 219)) |
98 |
self.dockWidgetObjectExplorer.setObjectName("dockWidgetObjectExplorer") |
99 |
self.dockWidgetContents_2 = QtWidgets.QWidget()
|
100 |
self.dockWidgetContents_2.setObjectName("dockWidgetContents_2") |
101 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.dockWidgetContents_2) |
102 |
self.gridLayout_4.setObjectName("gridLayout_4") |
103 |
self.tabWidgetItemExplorer = QtWidgets.QTabWidget(self.dockWidgetContents_2) |
104 |
self.tabWidgetItemExplorer.setObjectName("tabWidgetItemExplorer") |
105 |
self.tabItemProperty = QtWidgets.QWidget()
|
106 |
self.tabItemProperty.setObjectName("tabItemProperty") |
107 |
self.gridLayout_6 = QtWidgets.QGridLayout(self.tabItemProperty) |
108 |
self.gridLayout_6.setObjectName("gridLayout_6") |
109 |
self.symbolExplorerVerticalLayout = QtWidgets.QVBoxLayout()
|
110 |
self.symbolExplorerVerticalLayout.setObjectName("symbolExplorerVerticalLayout") |
111 |
self.gridLayout_6.addLayout(self.symbolExplorerVerticalLayout, 0, 0, 1, 1) |
112 |
self.tabWidgetItemExplorer.addTab(self.tabItemProperty, "") |
113 |
self.tabDrawingList = QtWidgets.QWidget()
|
114 |
self.tabDrawingList.setObjectName("tabDrawingList") |
115 |
self.gridLayout_7 = QtWidgets.QGridLayout(self.tabDrawingList) |
116 |
self.gridLayout_7.setObjectName("gridLayout_7") |
117 |
self.verticalLayoutDrawingList = QtWidgets.QVBoxLayout()
|
118 |
self.verticalLayoutDrawingList.setObjectName("verticalLayoutDrawingList") |
119 |
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
|
120 |
self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
121 |
self.pushButtonBatchRecognition = QtWidgets.QPushButton(self.tabDrawingList) |
122 |
self.pushButtonBatchRecognition.setMaximumSize(QtCore.QSize(80, 16777215)) |
123 |
self.pushButtonBatchRecognition.setObjectName("pushButtonBatchRecognition") |
124 |
self.horizontalLayout_4.addWidget(self.pushButtonBatchRecognition) |
125 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
126 |
self.horizontalLayout_4.addItem(spacerItem)
|
127 |
self.pushButtonRefreshDrawings = QtWidgets.QPushButton(self.tabDrawingList) |
128 |
self.pushButtonRefreshDrawings.setObjectName("pushButtonRefreshDrawings") |
129 |
self.horizontalLayout_4.addWidget(self.pushButtonRefreshDrawings) |
130 |
self.verticalLayoutDrawingList.addLayout(self.horizontalLayout_4) |
131 |
self.treeWidgetDrawingList = QtWidgets.QTreeWidget(self.tabDrawingList) |
132 |
self.treeWidgetDrawingList.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
133 |
self.treeWidgetDrawingList.setColumnCount(2) |
134 |
self.treeWidgetDrawingList.setObjectName("treeWidgetDrawingList") |
135 |
self.treeWidgetDrawingList.headerItem().setText(0, "1") |
136 |
self.treeWidgetDrawingList.headerItem().setText(1, "2") |
137 |
self.treeWidgetDrawingList.header().setVisible(False) |
138 |
self.verticalLayoutDrawingList.addWidget(self.treeWidgetDrawingList) |
139 |
self.gridLayout_7.addLayout(self.verticalLayoutDrawingList, 0, 0, 1, 1) |
140 |
self.tabWidgetItemExplorer.addTab(self.tabDrawingList, "") |
141 |
self.gridLayout_4.addWidget(self.tabWidgetItemExplorer, 0, 0, 1, 1) |
142 |
self.dockWidgetObjectExplorer.setWidget(self.dockWidgetContents_2) |
143 |
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidgetObjectExplorer) |
144 |
self.EditToolbar = QtWidgets.QToolBar(MainWindow)
|
145 |
self.EditToolbar.setEnabled(True) |
146 |
self.EditToolbar.setIconSize(QtCore.QSize(32, 32)) |
147 |
self.EditToolbar.setObjectName("EditToolbar") |
148 |
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.EditToolbar)
|
149 |
self.dockWidgetOutputWnd = QtWidgets.QDockWidget(MainWindow)
|
150 |
self.dockWidgetOutputWnd.setFeatures(QtWidgets.QDockWidget.DockWidgetFloatable|QtWidgets.QDockWidget.DockWidgetMovable)
|
151 |
self.dockWidgetOutputWnd.setAllowedAreas(QtCore.Qt.AllDockWidgetAreas)
|
152 |
self.dockWidgetOutputWnd.setObjectName("dockWidgetOutputWnd") |
153 |
self.dockWidgetContents_3 = QtWidgets.QWidget()
|
154 |
self.dockWidgetContents_3.setObjectName("dockWidgetContents_3") |
155 |
self.gridLayout_5 = QtWidgets.QGridLayout(self.dockWidgetContents_3) |
156 |
self.gridLayout_5.setObjectName("gridLayout_5") |
157 |
self.tabWidget_2 = QtWidgets.QTabWidget(self.dockWidgetContents_3) |
158 |
self.tabWidget_2.setObjectName("tabWidget_2") |
159 |
self.tabTerminal = QtWidgets.QWidget()
|
160 |
self.tabTerminal.setObjectName("tabTerminal") |
161 |
self.gridLayout_12 = QtWidgets.QGridLayout(self.tabTerminal) |
162 |
self.gridLayout_12.setObjectName("gridLayout_12") |
163 |
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
|
164 |
self.verticalLayout_3.setObjectName("verticalLayout_3") |
165 |
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
|
166 |
self.horizontalLayout_5.setObjectName("horizontalLayout_5") |
167 |
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
168 |
self.horizontalLayout_5.addItem(spacerItem1)
|
169 |
self.pushButtonClearLog = QtWidgets.QPushButton(self.tabTerminal) |
170 |
self.pushButtonClearLog.setEnabled(True) |
171 |
self.pushButtonClearLog.setMaximumSize(QtCore.QSize(32, 16777215)) |
172 |
self.pushButtonClearLog.setObjectName("pushButtonClearLog") |
173 |
self.horizontalLayout_5.addWidget(self.pushButtonClearLog, 0, QtCore.Qt.AlignRight) |
174 |
self.verticalLayout_3.addLayout(self.horizontalLayout_5) |
175 |
self.listWidgetLog = QtWidgets.QListWidget(self.tabTerminal) |
176 |
self.listWidgetLog.setObjectName("listWidgetLog") |
177 |
self.verticalLayout_3.addWidget(self.listWidgetLog) |
178 |
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
|
179 |
self.horizontalLayout_6.setObjectName("horizontalLayout_6") |
180 |
self.verticalLayout_3.addLayout(self.horizontalLayout_6) |
181 |
self.gridLayout_12.addLayout(self.verticalLayout_3, 0, 0, 1, 1) |
182 |
self.tabWidget_2.addTab(self.tabTerminal, "") |
183 |
self.tabInconsistency = QtWidgets.QWidget()
|
184 |
self.tabInconsistency.setObjectName("tabInconsistency") |
185 |
self.gridLayout_8 = QtWidgets.QGridLayout(self.tabInconsistency) |
186 |
self.gridLayout_8.setObjectName("gridLayout_8") |
187 |
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
188 |
self.verticalLayout_2.setObjectName("verticalLayout_2") |
189 |
self.tableWidgetInconsistency = QtWidgets.QTableWidget(self.tabInconsistency) |
190 |
self.tableWidgetInconsistency.setObjectName("tableWidgetInconsistency") |
191 |
self.tableWidgetInconsistency.setColumnCount(0) |
192 |
self.tableWidgetInconsistency.setRowCount(0) |
193 |
self.verticalLayout_2.addWidget(self.tableWidgetInconsistency) |
194 |
self.gridLayout_8.addLayout(self.verticalLayout_2, 0, 0, 1, 1) |
195 |
self.tabWidget_2.addTab(self.tabInconsistency, "") |
196 |
self.gridLayout_5.addWidget(self.tabWidget_2, 0, 0, 1, 1) |
197 |
self.dockWidgetOutputWnd.setWidget(self.dockWidgetContents_3) |
198 |
MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(8), self.dockWidgetOutputWnd) |
199 |
self.actionOpen = QtWidgets.QAction(MainWindow)
|
200 |
icon = QtGui.QIcon() |
201 |
icon.addPixmap(QtGui.QPixmap(":/newPrefix/file.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
202 |
self.actionOpen.setIcon(icon)
|
203 |
font = QtGui.QFont() |
204 |
font.setFamily("맑은 고딕")
|
205 |
self.actionOpen.setFont(font)
|
206 |
self.actionOpen.setObjectName("actionOpen") |
207 |
self.actionClose = QtWidgets.QAction(MainWindow)
|
208 |
font = QtGui.QFont() |
209 |
font.setFamily("맑은 고딕")
|
210 |
self.actionClose.setFont(font)
|
211 |
self.actionClose.setObjectName("actionClose") |
212 |
self.actionRecognition = QtWidgets.QAction(MainWindow)
|
213 |
icon1 = QtGui.QIcon() |
214 |
icon1.addPixmap(QtGui.QPixmap(":/newPrefix/recognition.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
215 |
self.actionRecognition.setIcon(icon1)
|
216 |
font = QtGui.QFont() |
217 |
font.setFamily("맑은 고딕")
|
218 |
font.setBold(True)
|
219 |
font.setWeight(75)
|
220 |
self.actionRecognition.setFont(font)
|
221 |
self.actionRecognition.setObjectName("actionRecognition") |
222 |
self.actionLine = QtWidgets.QAction(MainWindow)
|
223 |
self.actionLine.setCheckable(True) |
224 |
icon2 = QtGui.QIcon() |
225 |
icon2.addPixmap(QtGui.QPixmap(":/newPrefix/line.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
226 |
self.actionLine.setIcon(icon2)
|
227 |
font = QtGui.QFont() |
228 |
font.setFamily("맑은 고딕")
|
229 |
font.setBold(True)
|
230 |
font.setWeight(75)
|
231 |
self.actionLine.setFont(font)
|
232 |
self.actionLine.setObjectName("actionLine") |
233 |
self.actionValidate = QtWidgets.QAction(MainWindow)
|
234 |
icon3 = QtGui.QIcon() |
235 |
icon3.addPixmap(QtGui.QPixmap(":/newPrefix/validation.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
236 |
self.actionValidate.setIcon(icon3)
|
237 |
font = QtGui.QFont() |
238 |
font.setFamily("맑은 고딕")
|
239 |
font.setBold(True)
|
240 |
font.setWeight(75)
|
241 |
self.actionValidate.setFont(font)
|
242 |
self.actionValidate.setObjectName("actionValidate") |
243 |
self.actionConfiguration = QtWidgets.QAction(MainWindow)
|
244 |
icon4 = QtGui.QIcon() |
245 |
icon4.addPixmap(QtGui.QPixmap(":/newPrefix/setting.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
246 |
self.actionConfiguration.setIcon(icon4)
|
247 |
font = QtGui.QFont() |
248 |
font.setFamily("맑은 고딕")
|
249 |
font.setBold(True)
|
250 |
font.setWeight(75)
|
251 |
self.actionConfiguration.setFont(font)
|
252 |
self.actionConfiguration.setObjectName("actionConfiguration") |
253 |
self.actionArea = QtWidgets.QAction(MainWindow)
|
254 |
self.actionArea.setIcon(icon4)
|
255 |
font = QtGui.QFont() |
256 |
font.setFamily("맑은 고딕")
|
257 |
font.setBold(True)
|
258 |
font.setWeight(75)
|
259 |
self.actionArea.setFont(font)
|
260 |
self.actionArea.setObjectName("actionArea") |
261 |
self.actionOCR = QtWidgets.QAction(MainWindow)
|
262 |
self.actionOCR.setCheckable(True) |
263 |
icon5 = QtGui.QIcon() |
264 |
icon5.addPixmap(QtGui.QPixmap(":/newPrefix/OCR.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
265 |
self.actionOCR.setIcon(icon5)
|
266 |
font = QtGui.QFont() |
267 |
font.setFamily("맑은 고딕")
|
268 |
font.setBold(True)
|
269 |
font.setWeight(75)
|
270 |
self.actionOCR.setFont(font)
|
271 |
self.actionOCR.setObjectName("actionOCR") |
272 |
self.actionLineRecognition = QtWidgets.QAction(MainWindow)
|
273 |
icon6 = QtGui.QIcon() |
274 |
icon6.addPixmap(QtGui.QPixmap(":/newPrefix/connection.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
275 |
self.actionLineRecognition.setIcon(icon6)
|
276 |
font = QtGui.QFont() |
277 |
font.setFamily("맑은 고딕")
|
278 |
font.setBold(True)
|
279 |
font.setWeight(75)
|
280 |
self.actionLineRecognition.setFont(font)
|
281 |
self.actionLineRecognition.setObjectName("actionLineRecognition") |
282 |
self.actionGenerateOutput = QtWidgets.QAction(MainWindow)
|
283 |
icon7 = QtGui.QIcon() |
284 |
icon7.addPixmap(QtGui.QPixmap(":/newPrefix/Convert.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
285 |
self.actionGenerateOutput.setIcon(icon7)
|
286 |
font = QtGui.QFont() |
287 |
font.setFamily("맑은 고딕")
|
288 |
font.setBold(True)
|
289 |
font.setWeight(75)
|
290 |
self.actionGenerateOutput.setFont(font)
|
291 |
self.actionGenerateOutput.setObjectName("actionGenerateOutput") |
292 |
self.actionEquipment_Data_List = QtWidgets.QAction(MainWindow)
|
293 |
font = QtGui.QFont() |
294 |
font.setFamily("맑은 고딕")
|
295 |
font.setBold(True)
|
296 |
font.setWeight(75)
|
297 |
self.actionEquipment_Data_List.setFont(font)
|
298 |
self.actionEquipment_Data_List.setObjectName("actionEquipment_Data_List") |
299 |
self.actionItem_Data_List = QtWidgets.QAction(MainWindow)
|
300 |
font = QtGui.QFont() |
301 |
font.setFamily("맑은 고딕")
|
302 |
font.setBold(False)
|
303 |
font.setWeight(50)
|
304 |
self.actionItem_Data_List.setFont(font)
|
305 |
self.actionItem_Data_List.setObjectName("actionItem_Data_List") |
306 |
self.actionInstrument_Data_List = QtWidgets.QAction(MainWindow)
|
307 |
font = QtGui.QFont() |
308 |
font.setFamily("맑은 고딕")
|
309 |
font.setBold(True)
|
310 |
font.setWeight(75)
|
311 |
self.actionInstrument_Data_List.setFont(font)
|
312 |
self.actionInstrument_Data_List.setObjectName("actionInstrument_Data_List") |
313 |
self.actionInitialize = QtWidgets.QAction(MainWindow)
|
314 |
icon8 = QtGui.QIcon() |
315 |
icon8.addPixmap(QtGui.QPixmap(":/newPrefix/Reset.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
316 |
self.actionInitialize.setIcon(icon8)
|
317 |
font = QtGui.QFont() |
318 |
font.setFamily("맑은 고딕")
|
319 |
self.actionInitialize.setFont(font)
|
320 |
self.actionInitialize.setObjectName("actionInitialize") |
321 |
self.actionImage_Drawing = QtWidgets.QAction(MainWindow)
|
322 |
self.actionImage_Drawing.setCheckable(True) |
323 |
self.actionImage_Drawing.setChecked(True) |
324 |
font = QtGui.QFont() |
325 |
font.setFamily("맑은 고딕")
|
326 |
self.actionImage_Drawing.setFont(font)
|
327 |
self.actionImage_Drawing.setObjectName("actionImage_Drawing") |
328 |
self.actionZoom = QtWidgets.QAction(MainWindow)
|
329 |
self.actionZoom.setCheckable(True) |
330 |
icon9 = QtGui.QIcon() |
331 |
icon9.addPixmap(QtGui.QPixmap(":/newPrefix/zoom-in-tool.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
332 |
self.actionZoom.setIcon(icon9)
|
333 |
font = QtGui.QFont() |
334 |
font.setFamily("맑은 고딕")
|
335 |
font.setBold(True)
|
336 |
font.setWeight(75)
|
337 |
self.actionZoom.setFont(font)
|
338 |
self.actionZoom.setObjectName("actionZoom") |
339 |
self.actionFitWindow = QtWidgets.QAction(MainWindow)
|
340 |
icon10 = QtGui.QIcon() |
341 |
icon10.addPixmap(QtGui.QPixmap(":/newPrefix/fitWindownWidth.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
342 |
self.actionFitWindow.setIcon(icon10)
|
343 |
font = QtGui.QFont() |
344 |
font.setFamily("맑은 고딕")
|
345 |
font.setBold(True)
|
346 |
font.setWeight(75)
|
347 |
self.actionFitWindow.setFont(font)
|
348 |
self.actionFitWindow.setObjectName("actionFitWindow") |
349 |
self.actionViewSymbol = QtWidgets.QAction(MainWindow)
|
350 |
self.actionViewSymbol.setCheckable(True) |
351 |
self.actionViewSymbol.setChecked(True) |
352 |
font = QtGui.QFont() |
353 |
font.setFamily("맑은 고딕")
|
354 |
self.actionViewSymbol.setFont(font)
|
355 |
self.actionViewSymbol.setObjectName("actionViewSymbol") |
356 |
self.actionViewText = QtWidgets.QAction(MainWindow)
|
357 |
self.actionViewText.setCheckable(True) |
358 |
self.actionViewText.setChecked(True) |
359 |
font = QtGui.QFont() |
360 |
font.setFamily("맑은 고딕")
|
361 |
self.actionViewText.setFont(font)
|
362 |
self.actionViewText.setObjectName("actionViewText") |
363 |
self.actionViewLine = QtWidgets.QAction(MainWindow)
|
364 |
self.actionViewLine.setCheckable(True) |
365 |
self.actionViewLine.setChecked(True) |
366 |
font = QtGui.QFont() |
367 |
font.setFamily("맑은 고딕")
|
368 |
self.actionViewLine.setFont(font)
|
369 |
self.actionViewLine.setObjectName("actionViewLine") |
370 |
self.actionViewUnknown = QtWidgets.QAction(MainWindow)
|
371 |
self.actionViewUnknown.setCheckable(True) |
372 |
self.actionViewUnknown.setChecked(True) |
373 |
font = QtGui.QFont() |
374 |
font.setFamily("맑은 고딕")
|
375 |
self.actionViewUnknown.setFont(font)
|
376 |
self.actionViewUnknown.setObjectName("actionViewUnknown") |
377 |
self.actionCodeTable = QtWidgets.QAction(MainWindow)
|
378 |
icon11 = QtGui.QIcon() |
379 |
icon11.addPixmap(QtGui.QPixmap(":/newPrefix/codetable.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
380 |
self.actionCodeTable.setIcon(icon11)
|
381 |
font = QtGui.QFont() |
382 |
font.setFamily("맑은 고딕")
|
383 |
self.actionCodeTable.setFont(font)
|
384 |
self.actionCodeTable.setObjectName("actionCodeTable") |
385 |
self.actionFluid_Code = QtWidgets.QAction(MainWindow)
|
386 |
font = QtGui.QFont() |
387 |
font.setFamily("맑은 고딕")
|
388 |
self.actionFluid_Code.setFont(font)
|
389 |
self.actionFluid_Code.setObjectName("actionFluid_Code") |
390 |
self.actionpdf_to_image = QtWidgets.QAction(MainWindow)
|
391 |
font = QtGui.QFont() |
392 |
font.setFamily("맑은 고딕")
|
393 |
self.actionpdf_to_image.setFont(font)
|
394 |
self.actionpdf_to_image.setObjectName("actionpdf_to_image") |
395 |
self.actionHMB_DATA = QtWidgets.QAction(MainWindow)
|
396 |
self.actionHMB_DATA.setObjectName("actionHMB_DATA") |
397 |
self.actionSave = QtWidgets.QAction(MainWindow)
|
398 |
icon12 = QtGui.QIcon() |
399 |
icon12.addPixmap(QtGui.QPixmap(":/newPrefix/save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
400 |
self.actionSave.setIcon(icon12)
|
401 |
self.actionSave.setObjectName("actionSave") |
402 |
self.actionRotate = QtWidgets.QAction(MainWindow)
|
403 |
icon13 = QtGui.QIcon() |
404 |
icon13.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Minus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
405 |
self.actionRotate.setIcon(icon13)
|
406 |
self.actionRotate.setObjectName("actionRotate") |
407 |
self.actionFindReplaceText = QtWidgets.QAction(MainWindow)
|
408 |
self.actionFindReplaceText.setObjectName("actionFindReplaceText") |
409 |
self.actionReplaceText = QtWidgets.QAction(MainWindow)
|
410 |
font = QtGui.QFont() |
411 |
font.setFamily("맑은 고딕")
|
412 |
self.actionReplaceText.setFont(font)
|
413 |
self.actionReplaceText.setObjectName("actionReplaceText") |
414 |
self.actionOCR_Training = QtWidgets.QAction(MainWindow)
|
415 |
self.actionOCR_Training.setObjectName("actionOCR_Training") |
416 |
self.actionOCR_Training_Editor = QtWidgets.QAction(MainWindow)
|
417 |
self.actionOCR_Training_Editor.setObjectName("actionOCR_Training_Editor") |
418 |
self.actioncoffee = QtWidgets.QAction(MainWindow)
|
419 |
self.actioncoffee.setObjectName("actioncoffee") |
420 |
self.actionEnglish = QtWidgets.QAction(MainWindow)
|
421 |
self.actionEnglish.setObjectName("actionEnglish") |
422 |
self.actionViewInconsistency = QtWidgets.QAction(MainWindow)
|
423 |
self.actionViewInconsistency.setCheckable(True) |
424 |
self.actionViewInconsistency.setChecked(True) |
425 |
self.actionViewInconsistency.setObjectName("actionViewInconsistency") |
426 |
self.actionText_Data_List = QtWidgets.QAction(MainWindow)
|
427 |
self.actionText_Data_List.setObjectName("actionText_Data_List") |
428 |
self.actionDrawing_Only = QtWidgets.QAction(MainWindow)
|
429 |
self.actionDrawing_Only.setCheckable(True) |
430 |
self.actionDrawing_Only.setObjectName("actionDrawing_Only") |
431 |
self.actionVendor = QtWidgets.QAction(MainWindow)
|
432 |
self.actionVendor.setCheckable(True) |
433 |
icon14 = QtGui.QIcon() |
434 |
icon14.addPixmap(QtGui.QPixmap(":/newPrefix/vendor.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
435 |
icon14.addPixmap(QtGui.QPixmap(":/newPrefix/vendor_hot.png"), QtGui.QIcon.Normal, QtGui.QIcon.On)
|
436 |
icon14.addPixmap(QtGui.QPixmap(":/newPrefix/vendor.png"), QtGui.QIcon.Active, QtGui.QIcon.On)
|
437 |
self.actionVendor.setIcon(icon14)
|
438 |
self.actionVendor.setObjectName("actionVendor") |
439 |
self.actionViewVendor_Area = QtWidgets.QAction(MainWindow)
|
440 |
self.actionViewVendor_Area.setCheckable(True) |
441 |
self.actionViewVendor_Area.setChecked(True) |
442 |
self.actionViewVendor_Area.setObjectName("actionViewVendor_Area") |
443 |
self.actionImport_Text_From_CAD = QtWidgets.QAction(MainWindow)
|
444 |
self.actionImport_Text_From_CAD.setObjectName("actionImport_Text_From_CAD") |
445 |
self.menu.addAction(self.actionOpen) |
446 |
self.menu.addAction(self.actionArea) |
447 |
self.menu.addAction(self.actionConfiguration) |
448 |
self.menu.addSeparator()
|
449 |
self.menu.addAction(self.menuTheme.menuAction()) |
450 |
self.menu.addAction(self.menuLanguage.menuAction()) |
451 |
self.menu.addSeparator()
|
452 |
self.menu.addAction(self.actionClose) |
453 |
self.menu_2.addAction(self.actionHMB_DATA) |
454 |
self.menu_2.addAction(self.actionItem_Data_List) |
455 |
self.menu_2.addSeparator()
|
456 |
self.menu_2.addAction(self.actionCodeTable) |
457 |
self.menu_2.addAction(self.actionOCR_Training) |
458 |
self.menu_3.addAction(self.actionImage_Drawing) |
459 |
self.menu_3.addAction(self.actionViewText) |
460 |
self.menu_3.addAction(self.actionViewSymbol) |
461 |
self.menu_3.addAction(self.actionViewLine) |
462 |
self.menu_3.addSeparator()
|
463 |
self.menu_3.addAction(self.actionViewUnknown) |
464 |
self.menu_3.addAction(self.actionViewInconsistency) |
465 |
self.menu_3.addAction(self.actionViewVendor_Area) |
466 |
self.menu_3.addSeparator()
|
467 |
self.menu_3.addAction(self.actionDrawing_Only) |
468 |
self.menu_4.addAction(self.actionpdf_to_image) |
469 |
self.menu_4.addAction(self.actionImport_Text_From_CAD) |
470 |
self.menu_5.addAction(self.actionFindReplaceText) |
471 |
self.menu_5.addAction(self.actionText_Data_List) |
472 |
self.menubar.addAction(self.menu.menuAction()) |
473 |
self.menubar.addAction(self.menu_5.menuAction()) |
474 |
self.menubar.addAction(self.menu_2.menuAction()) |
475 |
self.menubar.addAction(self.menu_3.menuAction()) |
476 |
self.menubar.addAction(self.menu_4.menuAction()) |
477 |
self.toolBar.addAction(self.actionOpen) |
478 |
self.toolBar.addAction(self.actionSave) |
479 |
self.toolBar.addAction(self.actionRecognition) |
480 |
self.toolBar.addAction(self.actionLineRecognition) |
481 |
self.toolBar.addAction(self.actionInitialize) |
482 |
self.toolBar.addSeparator()
|
483 |
self.toolBar.addAction(self.actionLine) |
484 |
self.toolBar.addAction(self.actionOCR) |
485 |
self.toolBar.addAction(self.actionVendor) |
486 |
self.toolBar.addAction(self.actionValidate) |
487 |
self.toolBar.addSeparator()
|
488 |
self.toolBar.addAction(self.actionGenerateOutput) |
489 |
self.EditToolbar.addAction(self.actionRotate) |
490 |
self.EditToolbar.addAction(self.actionZoom) |
491 |
self.EditToolbar.addAction(self.actionFitWindow) |
492 |
self.EditToolbar.addSeparator()
|
493 |
|
494 |
self.retranslateUi(MainWindow)
|
495 |
self.tabWidget.setCurrentIndex(0) |
496 |
self.tabWidgetItemExplorer.setCurrentIndex(0) |
497 |
self.tabWidget_2.setCurrentIndex(0) |
498 |
QtCore.QMetaObject.connectSlotsByName(MainWindow) |
499 |
|
500 |
def retranslateUi(self, MainWindow): |
501 |
_translate = QtCore.QCoreApplication.translate |
502 |
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) |
503 |
self.menu.setTitle(_translate("MainWindow", "File")) |
504 |
self.menuTheme.setTitle(_translate("MainWindow", "Theme")) |
505 |
self.menuLanguage.setTitle(_translate("MainWindow", "Language")) |
506 |
self.menu_2.setTitle(_translate("MainWindow", "Data")) |
507 |
self.menu_3.setTitle(_translate("MainWindow", "View")) |
508 |
self.menu_4.setTitle(_translate("MainWindow", "Tool")) |
509 |
self.menu_5.setTitle(_translate("MainWindow", "Edit")) |
510 |
self.toolBar.setWindowTitle(_translate("MainWindow", "Main Toolbar")) |
511 |
self.dockWidget.setWindowTitle(_translate("MainWindow", "Symbol Explorer")) |
512 |
self.pushButtonCreateSymbol.setText(_translate("MainWindow", "Create")) |
513 |
self.pushButtonDetectSymbol.setText(_translate("MainWindow", "Symbol Manager")) |
514 |
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Symbol), _translate("MainWindow", "Symbol")) |
515 |
self.dockWidgetObjectExplorer.setWindowTitle(_translate("MainWindow", "Object Explorer")) |
516 |
self.tabWidgetItemExplorer.setTabText(self.tabWidgetItemExplorer.indexOf(self.tabItemProperty), _translate("MainWindow", "Object Explorer")) |
517 |
self.pushButtonBatchRecognition.setText(_translate("MainWindow", "Batch Job")) |
518 |
self.pushButtonRefreshDrawings.setText(_translate("MainWindow", "Refresh Drawing List")) |
519 |
self.treeWidgetDrawingList.setSortingEnabled(True) |
520 |
self.tabWidgetItemExplorer.setTabText(self.tabWidgetItemExplorer.indexOf(self.tabDrawingList), _translate("MainWindow", "Drawing List")) |
521 |
self.EditToolbar.setWindowTitle(_translate("MainWindow", "Edit Toolbar")) |
522 |
self.dockWidgetOutputWnd.setWindowTitle(_translate("MainWindow", "Output Window")) |
523 |
self.pushButtonClearLog.setToolTip(_translate("MainWindow", "Clear")) |
524 |
self.pushButtonClearLog.setText(_translate("MainWindow", "X")) |
525 |
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabTerminal), _translate("MainWindow", "Terminal")) |
526 |
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabInconsistency), _translate("MainWindow", "Inconsistency")) |
527 |
self.actionOpen.setText(_translate("MainWindow", "Open")) |
528 |
self.actionOpen.setToolTip(_translate("MainWindow", "Open(Ctrl + O)")) |
529 |
self.actionOpen.setShortcut(_translate("MainWindow", "Ctrl+O")) |
530 |
self.actionClose.setText(_translate("MainWindow", "Exit")) |
531 |
self.actionRecognition.setText(_translate("MainWindow", "Recognize Eng. Info.")) |
532 |
self.actionRecognition.setToolTip(_translate("MainWindow", "Recognize Eng. Info.")) |
533 |
self.actionLine.setText(_translate("MainWindow", "Create Line")) |
534 |
self.actionLine.setToolTip(_translate("MainWindow", "Create Line(L)")) |
535 |
self.actionLine.setShortcut(_translate("MainWindow", "L")) |
536 |
self.actionValidate.setText(_translate("MainWindow", "Validate")) |
537 |
self.actionValidate.setToolTip(_translate("MainWindow", "Validate(V)")) |
538 |
self.actionValidate.setShortcut(_translate("MainWindow", "V")) |
539 |
self.actionConfiguration.setText(_translate("MainWindow", "Configuration")) |
540 |
self.actionArea.setText(_translate("MainWindow", "Setup Area")) |
541 |
self.actionOCR.setText(_translate("MainWindow", "OCR")) |
542 |
self.actionOCR.setToolTip(_translate("MainWindow", "OCR(T)")) |
543 |
self.actionOCR.setShortcut(_translate("MainWindow", "T")) |
544 |
self.actionLineRecognition.setText(_translate("MainWindow", "Link Attribute")) |
545 |
self.actionLineRecognition.setToolTip(_translate("MainWindow", "Link Attribute")) |
546 |
self.actionGenerateOutput.setText(_translate("MainWindow", "Convert")) |
547 |
self.actionEquipment_Data_List.setText(_translate("MainWindow", "Equipment Data List")) |
548 |
self.actionItem_Data_List.setText(_translate("MainWindow", "Engineering Info. List")) |
549 |
self.actionInstrument_Data_List.setText(_translate("MainWindow", "Instrument Data List")) |
550 |
self.actionInitialize.setText(_translate("MainWindow", "Initialize")) |
551 |
self.actionImage_Drawing.setText(_translate("MainWindow", "Image Drawing (1)")) |
552 |
self.actionZoom.setText(_translate("MainWindow", "Zoom")) |
553 |
self.actionZoom.setToolTip(_translate("MainWindow", "Zoom(Z)")) |
554 |
self.actionZoom.setShortcut(_translate("MainWindow", "Z")) |
555 |
self.actionFitWindow.setText(_translate("MainWindow", "FitWindow")) |
556 |
self.actionViewSymbol.setText(_translate("MainWindow", "Symbol (3)")) |
557 |
self.actionViewText.setText(_translate("MainWindow", "Text (2)")) |
558 |
self.actionViewLine.setText(_translate("MainWindow", "Line (4)")) |
559 |
self.actionViewUnknown.setText(_translate("MainWindow", "Unrecognization (5)")) |
560 |
self.actionCodeTable.setText(_translate("MainWindow", "Code Table")) |
561 |
self.actionFluid_Code.setText(_translate("MainWindow", "Fluid Code")) |
562 |
self.actionpdf_to_image.setText(_translate("MainWindow", "Convert PDF")) |
563 |
self.actionHMB_DATA.setText(_translate("MainWindow", "HMB Data")) |
564 |
self.actionSave.setText(_translate("MainWindow", "Save")) |
565 |
self.actionSave.setToolTip(_translate("MainWindow", "Save(Ctrl + S)")) |
566 |
self.actionSave.setShortcut(_translate("MainWindow", "Ctrl+S")) |
567 |
self.actionRotate.setText(_translate("MainWindow", "Rotate")) |
568 |
self.actionRotate.setToolTip(_translate("MainWindow", "Rotate(Ctrl + R)")) |
569 |
self.actionRotate.setShortcut(_translate("MainWindow", "Ctrl+R")) |
570 |
self.actionFindReplaceText.setText(_translate("MainWindow", "Find/Replace")) |
571 |
self.actionFindReplaceText.setToolTip(_translate("MainWindow", "Fine/Replace")) |
572 |
self.actionReplaceText.setText(_translate("MainWindow", "Modify Text")) |
573 |
self.actionOCR_Training.setText(_translate("MainWindow", "OCR Training")) |
574 |
self.actionOCR_Training_Editor.setText(_translate("MainWindow", "OCR Training Editor")) |
575 |
self.actioncoffee.setText(_translate("MainWindow", "coffee")) |
576 |
self.actionEnglish.setText(_translate("MainWindow", "English")) |
577 |
self.actionViewInconsistency.setText(_translate("MainWindow", "Inconsistency (6)")) |
578 |
self.actionText_Data_List.setText(_translate("MainWindow", "Text Data List")) |
579 |
self.actionDrawing_Only.setText(_translate("MainWindow", "Drawing Only ( ` )")) |
580 |
self.actionVendor.setText(_translate("MainWindow", "Vendor")) |
581 |
self.actionVendor.setToolTip(_translate("MainWindow", "Set Vendor Package")) |
582 |
self.actionViewVendor_Area.setText(_translate("MainWindow", "Vendor Area(7)")) |
583 |
self.actionImport_Text_From_CAD.setText(_translate("MainWindow", "Import Text From CAD")) |
584 |
|
585 |
import MainWindow_rc |
586 |
|
587 |
if __name__ == "__main__": |
588 |
import sys |
589 |
app = QtWidgets.QApplication(sys.argv) |
590 |
MainWindow = QtWidgets.QMainWindow() |
591 |
ui = Ui_MainWindow() |
592 |
ui.setupUi(MainWindow) |
593 |
MainWindow.show() |
594 |
sys.exit(app.exec_()) |
595 |
|