-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtela_team.py
243 lines (236 loc) · 12.8 KB
/
tela_team.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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UserTeam.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Tela_Team(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(646, 480)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(60, 30, 531, 381))
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.label_2 = QtWidgets.QLabel(self.tab)
self.label_2.setGeometry(QtCore.QRect(160, 40, 191, 21))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName("label_2")
self.pushButton_7 = QtWidgets.QPushButton(self.tab)
self.pushButton_7.setGeometry(QtCore.QRect(380, 260, 71, 31))
self.pushButton_7.setStyleSheet("background-color: #e05858;\n"
"border-radius: 7px;\n"
"padding: 4px;\n"
"color: white;")
self.pushButton_7.setObjectName("pushButton_7")
self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.tab)
self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(60, 80, 401, 159))
self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.label = QtWidgets.QLabel(self.verticalLayoutWidget_2)
self.label.setObjectName("label")
self.verticalLayout_2.addWidget(self.label)
self.lineEdit_1 = QtWidgets.QLineEdit(self.verticalLayoutWidget_2)
self.lineEdit_1.setObjectName("lineEdit_1")
self.verticalLayout_2.addWidget(self.lineEdit_1)
self.lineEdit_3 = QtWidgets.QLineEdit(self.verticalLayoutWidget_2)
self.lineEdit_3.setObjectName("lineEdit_3")
self.verticalLayout_2.addWidget(self.lineEdit_3)
self.lineEdit_4 = QtWidgets.QLineEdit(self.verticalLayoutWidget_2)
self.lineEdit_4.setObjectName("lineEdit_4")
self.verticalLayout_2.addWidget(self.lineEdit_4)
self.lineEdit_5 = QtWidgets.QLineEdit(self.verticalLayoutWidget_2)
self.lineEdit_5.setObjectName("lineEdit_5")
self.verticalLayout_2.addWidget(self.lineEdit_5)
self.horizontalLayoutWidget_3 = QtWidgets.QWidget(self.tab)
self.horizontalLayoutWidget_3.setGeometry(QtCore.QRect(60, 260, 161, 31))
self.horizontalLayoutWidget_3.setObjectName("horizontalLayoutWidget_3")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_3)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_3 = QtWidgets.QLabel(self.horizontalLayoutWidget_3)
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
self.label_3.setObjectName("label_3")
self.horizontalLayout_4.addWidget(self.label_3)
self.label_8 = QtWidgets.QLabel(self.horizontalLayoutWidget_3)
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.label_8.setFont(font)
self.label_8.setAlignment(QtCore.Qt.AlignCenter)
self.label_8.setObjectName("label_8")
self.horizontalLayout_4.addWidget(self.label_8)
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.verticalLayoutWidget = QtWidgets.QWidget(self.tab_2)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(30, 70, 461, 31))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.comboBox = QtWidgets.QComboBox(self.verticalLayoutWidget)
self.comboBox.setObjectName("comboBox")
self.horizontalLayout.addWidget(self.comboBox)
self.label_6 = QtWidgets.QLabel(self.verticalLayoutWidget)
self.label_6.setObjectName("label_6")
self.horizontalLayout.addWidget(self.label_6)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.tab_2)
self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(30, 40, 461, 31))
self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_4 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
self.label_4.setObjectName("label_4")
self.horizontalLayout_3.addWidget(self.label_4)
self.label_5 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
self.label_5.setObjectName("label_5")
self.horizontalLayout_3.addWidget(self.label_5)
self.label_7 = QtWidgets.QLabel(self.tab_2)
self.label_7.setGeometry(QtCore.QRect(30, 160, 161, 17))
self.label_7.setObjectName("label_7")
self.tableWidget_3 = QtWidgets.QTableWidget(self.tab_2)
self.tableWidget_3.setEnabled(True)
self.tableWidget_3.setGeometry(QtCore.QRect(30, 180, 461, 121))
self.tableWidget_3.setObjectName("tableWidget_3")
self.tableWidget_3.setColumnCount(3)
self.tableWidget_3.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_3.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_3.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_3.setHorizontalHeaderItem(2, item)
self.tableWidget_3.horizontalHeader().setStretchLastSection(True)
self.tableWidget_3.verticalHeader().setCascadingSectionResizes(False)
self.tableWidget_3.verticalHeader().setHighlightSections(True)
self.horizontalLayoutWidget = QtWidgets.QWidget(self.tab_2)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(260, 110, 231, 31))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.pushButton_5 = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.pushButton_5.setStyleSheet("background-color: #a8a894;\n"
"border-radius: 7px;\n"
"padding: 4px;\n"
"color: white;")
self.pushButton_5.setObjectName("pushButton_5")
self.horizontalLayout_2.addWidget(self.pushButton_5)
self.pushButton = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.pushButton.setStyleSheet("background-color: #4ebf6d;\n"
"border-radius: 5px;\n"
"padding: 4px;\n"
"color: white;")
self.pushButton.setObjectName("pushButton")
self.horizontalLayout_2.addWidget(self.pushButton)
self.horizontalLayoutWidget_4 = QtWidgets.QWidget(self.tab_2)
self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(190, 320, 121, 31))
self.horizontalLayoutWidget_4.setObjectName("horizontalLayoutWidget_4")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_4)
self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.pushButton_2 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_2.setGeometry(QtCore.QRect(200, 310, 119, 25))
self.pushButton_2.setStyleSheet("background-color: #c4c245;\n"
"border-radius: 7px;\n"
"padding: 4px;\n"
"color: white;")
self.pushButton_2.setObjectName("pushButton_2")
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.tableWidget_2 = QtWidgets.QTableWidget(self.tab_3)
self.tableWidget_2.setGeometry(QtCore.QRect(30, 60, 451, 191))
self.tableWidget_2.setObjectName("tableWidget_2")
self.tableWidget_2.setColumnCount(3)
self.tableWidget_2.setRowCount(1)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setVerticalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget_2.setHorizontalHeaderItem(2, item)
self.tableWidget_2.horizontalHeader().setStretchLastSection(True)
self.tableWidget_2.verticalHeader().setCascadingSectionResizes(False)
self.tableWidget_2.verticalHeader().setHighlightSections(True)
self.pushButton_3 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_3.setGeometry(QtCore.QRect(190, 270, 131, 31))
self.pushButton_3.setStyleSheet("background-color: #c4c245;\n"
"border-radius: 7px;\n"
"padding: 4px;\n"
"color: white;")
self.pushButton_3.setObjectName("pushButton_3")
self.tabWidget.addTab(self.tab_3, "")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 646, 23))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label_2.setText(_translate("MainWindow", "NO COOFEEE NO LIFE"))
self.pushButton_7.setText(_translate("MainWindow", "Sair"))
self.label.setText(_translate("MainWindow", "Componentes"))
self.label_3.setText(_translate("MainWindow", "SCORE"))
self.label_8.setText(_translate("MainWindow", "250"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Perfil do Time"))
self.label_6.setText(_translate("MainWindow", "<nome do arquivo>"))
self.label_4.setText(_translate("MainWindow", "Questão:"))
self.label_5.setText(_translate("MainWindow", "Arquivo:"))
self.label_7.setText(_translate("MainWindow", "Histórico de Submissão"))
item = self.tableWidget_3.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "Problema"))
item = self.tableWidget_3.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Data/Hora"))
item = self.tableWidget_3.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "Resposta"))
self.pushButton_5.setText(_translate("MainWindow", "Importar"))
self.pushButton.setText(_translate("MainWindow", "Submeter"))
self.pushButton_2.setText(_translate("MainWindow", "Atualizar"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Submissões"))
item = self.tableWidget_2.verticalHeaderItem(0)
item.setText(_translate("MainWindow", "1"))
item = self.tableWidget_2.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "Nome"))
item = self.tableWidget_2.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Pontuação"))
item = self.tableWidget_2.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "Submissões Corretas"))
self.pushButton_3.setText(_translate("MainWindow", "Atualizar"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Classificação Geral"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_Tela_Team()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())