-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI_perfect.py
205 lines (198 loc) · 11.7 KB
/
GUI_perfect.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI_perfect.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(952, 836)
MainWindow.setMinimumSize(QtCore.QSize(0, 0))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.groupGUI = QtWidgets.QGroupBox(self.centralwidget)
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.groupGUI.setFont(font)
self.groupGUI.setTitle("")
self.groupGUI.setAlignment(QtCore.Qt.AlignCenter)
self.groupGUI.setFlat(False)
self.groupGUI.setObjectName("groupGUI")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupGUI)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setSpacing(0)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.uipanel1 = QtWidgets.QGroupBox(self.groupGUI)
self.uipanel1.setAlignment(QtCore.Qt.AlignCenter)
self.uipanel1.setObjectName("uipanel1")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.uipanel1)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.horizontalLayout_panel1 = QtWidgets.QHBoxLayout()
self.horizontalLayout_panel1.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.horizontalLayout_panel1.setObjectName("horizontalLayout_panel1")
self.verticalLayout_5 = QtWidgets.QVBoxLayout()
self.verticalLayout_5.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.verticalLayout_5.setContentsMargins(0, -1, -1, -1)
self.verticalLayout_5.setObjectName("verticalLayout_5")
spacerItem = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_5.addItem(spacerItem)
self.LoadFile = QtWidgets.QPushButton(self.uipanel1)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.LoadFile.sizePolicy().hasHeightForWidth())
self.LoadFile.setSizePolicy(sizePolicy)
self.LoadFile.setMaximumSize(QtCore.QSize(16777215, 50))
self.LoadFile.setObjectName("LoadFile")
self.verticalLayout_5.addWidget(self.LoadFile)
spacerItem1 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_5.addItem(spacerItem1)
self.Process = QtWidgets.QPushButton(self.uipanel1)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Process.sizePolicy().hasHeightForWidth())
self.Process.setSizePolicy(sizePolicy)
self.Process.setMaximumSize(QtCore.QSize(16777215, 50))
self.Process.setDefault(False)
self.Process.setFlat(False)
self.Process.setObjectName("Process")
self.verticalLayout_5.addWidget(self.Process)
spacerItem2 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_5.addItem(spacerItem2)
self.uipaneldisplay = QtWidgets.QGroupBox(self.uipanel1)
self.uipaneldisplay.setObjectName("uipaneldisplay")
self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.uipaneldisplay)
self.horizontalLayout_14.setObjectName("horizontalLayout_14")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.rbFaces = QtWidgets.QRadioButton(self.uipaneldisplay)
self.rbFaces.setChecked(True)
self.rbFaces.setObjectName("rbFaces")
self.horizontalLayout_6.addWidget(self.rbFaces)
self.rbPoints = QtWidgets.QRadioButton(self.uipaneldisplay)
self.rbPoints.setChecked(False)
self.rbPoints.setObjectName("rbPoints")
self.horizontalLayout_6.addWidget(self.rbPoints)
self.horizontalLayout_14.addLayout(self.horizontalLayout_6)
self.verticalLayout_5.addWidget(self.uipaneldisplay)
spacerItem3 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_5.addItem(spacerItem3)
self.uipanelbackground = QtWidgets.QGroupBox(self.uipanel1)
self.uipanelbackground.setObjectName("uipanelbackground")
self.horizontalLayout_27 = QtWidgets.QHBoxLayout(self.uipanelbackground)
self.horizontalLayout_27.setObjectName("horizontalLayout_27")
self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
self.horizontalLayout_17.setObjectName("horizontalLayout_17")
self.rbWhite = QtWidgets.QRadioButton(self.uipanelbackground)
self.rbWhite.setChecked(True)
self.rbWhite.setObjectName("rbWhite")
self.horizontalLayout_17.addWidget(self.rbWhite)
self.rbBlack = QtWidgets.QRadioButton(self.uipanelbackground)
self.rbBlack.setObjectName("rbBlack")
self.horizontalLayout_17.addWidget(self.rbBlack)
self.horizontalLayout_27.addLayout(self.horizontalLayout_17)
self.verticalLayout_5.addWidget(self.uipanelbackground)
spacerItem4 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_5.addItem(spacerItem4)
self.exportResult = QtWidgets.QPushButton(self.uipanel1)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.exportResult.sizePolicy().hasHeightForWidth())
self.exportResult.setSizePolicy(sizePolicy)
self.exportResult.setMaximumSize(QtCore.QSize(16777215, 50))
self.exportResult.setObjectName("exportResult")
self.verticalLayout_5.addWidget(self.exportResult)
spacerItem5 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_5.addItem(spacerItem5)
self.groupBox = QtWidgets.QGroupBox(self.uipanel1)
self.groupBox.setMinimumSize(QtCore.QSize(2, 100))
self.groupBox.setObjectName("groupBox")
self.prog1 = QtWidgets.QProgressBar(self.groupBox)
self.prog1.setGeometry(QtCore.QRect(70, 20, 118, 23))
self.prog1.setProperty("value", 24)
self.prog1.setObjectName("prog1")
self.prog2 = QtWidgets.QProgressBar(self.groupBox)
self.prog2.setGeometry(QtCore.QRect(70, 50, 118, 23))
self.prog2.setProperty("value", 24)
self.prog2.setObjectName("prog2")
self.label = QtWidgets.QLabel(self.groupBox)
self.label.setGeometry(QtCore.QRect(10, 20, 55, 16))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.groupBox)
self.label_2.setGeometry(QtCore.QRect(10, 50, 55, 16))
self.label_2.setObjectName("label_2")
self.verticalLayout_5.addWidget(self.groupBox)
spacerItem6 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.verticalLayout_5.addItem(spacerItem6)
spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_5.addItem(spacerItem7)
spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_5.addItem(spacerItem8)
self.horizontalLayout_panel1.addLayout(self.verticalLayout_5)
self.horizontalLayout_3.addLayout(self.horizontalLayout_panel1)
self.horizontalLayout_7.addWidget(self.uipanel1)
self.uipanel2 = QtWidgets.QGroupBox(self.groupGUI)
self.uipanel2.setAlignment(QtCore.Qt.AlignCenter)
self.uipanel2.setObjectName("uipanel2")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.uipanel2)
self.horizontalLayout.setObjectName("horizontalLayout")
self.frame = QtWidgets.QFrame(self.uipanel2)
self.frame.setFrameShape(QtWidgets.QFrame.Box)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout_9.setContentsMargins(1, 1, 1, 1)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.frame_horizontalLayout = QtWidgets.QHBoxLayout()
self.frame_horizontalLayout.setObjectName("frame_horizontalLayout")
self.horizontalLayout_9.addLayout(self.frame_horizontalLayout)
self.horizontalLayout.addWidget(self.frame)
self.horizontalLayout_7.addWidget(self.uipanel2)
self.horizontalLayout_7.setStretch(1, 80)
self.verticalLayout_7.addLayout(self.horizontalLayout_7)
self.verticalLayout_7.setStretch(0, 90)
self.verticalLayout.addWidget(self.groupGUI)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 952, 26))
self.menubar.setObjectName("menubar")
self.menuParameters = QtWidgets.QMenu(self.menubar)
self.menuParameters.setObjectName("menuParameters")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionOpen_New_Window = QtWidgets.QAction(MainWindow)
self.actionOpen_New_Window.setObjectName("actionOpen_New_Window")
self.menuParameters.addAction(self.actionOpen_New_Window)
self.menubar.addAction(self.menuParameters.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Example"))
self.uipanel1.setTitle(_translate("MainWindow", "Settings"))
self.LoadFile.setText(_translate("MainWindow", "Load File"))
self.Process.setText(_translate("MainWindow", "Process"))
self.uipaneldisplay.setTitle(_translate("MainWindow", "3D Rendering Mode"))
self.rbFaces.setText(_translate("MainWindow", "Faces"))
self.rbPoints.setText(_translate("MainWindow", "Points"))
self.uipanelbackground.setTitle(_translate("MainWindow", "Background Color"))
self.rbWhite.setText(_translate("MainWindow", "Black"))
self.rbBlack.setText(_translate("MainWindow", "White"))
self.exportResult.setText(_translate("MainWindow", "Save 3D Face"))
self.groupBox.setTitle(_translate("MainWindow", "PCA Progress"))
self.label.setText(_translate("MainWindow", "Texture"))
self.label_2.setText(_translate("MainWindow", "Geometry"))
self.uipanel2.setTitle(_translate("MainWindow", "3D Model"))
self.menuParameters.setTitle(_translate("MainWindow", "Parameters"))
self.actionOpen_New_Window.setText(_translate("MainWindow", "Open New Window"))