forked from francidellungo/Minigrid_HCI-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent_detail_ui.py
192 lines (186 loc) · 11 KB
/
agent_detail_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
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'agent_detail.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Agent(object):
def setupUi(self, Agent):
Agent.setObjectName("Agent")
Agent.resize(884, 450)
self.centralwidget = QtWidgets.QWidget(Agent)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.labelStatus = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.labelStatus.sizePolicy().hasHeightForWidth())
self.labelStatus.setSizePolicy(sizePolicy)
self.labelStatus.setAlignment(QtCore.Qt.AlignCenter)
self.labelStatus.setObjectName("labelStatus")
self.verticalLayout.addWidget(self.labelStatus)
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.labelLoading = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.labelLoading.sizePolicy().hasHeightForWidth())
self.labelLoading.setSizePolicy(sizePolicy)
self.labelLoading.setMinimumSize(QtCore.QSize(0, 0))
self.labelLoading.setObjectName("labelLoading")
self.gridLayout.addWidget(self.labelLoading, 0, 1, 1, 1)
self.progressBarTraining = QtWidgets.QProgressBar(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.progressBarTraining.sizePolicy().hasHeightForWidth())
self.progressBarTraining.setSizePolicy(sizePolicy)
self.progressBarTraining.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.progressBarTraining.setProperty("value", 24)
self.progressBarTraining.setObjectName("progressBarTraining")
self.gridLayout.addWidget(self.progressBarTraining, 0, 2, 1, 1)
spacerItem = QtWidgets.QSpacerItem(50, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 0, 0, 1, 1)
self.sliderTraining = QtWidgets.QSlider(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.sliderTraining.sizePolicy().hasHeightForWidth())
self.sliderTraining.setSizePolicy(sizePolicy)
self.sliderTraining.setMouseTracking(False)
self.sliderTraining.setStyleSheet("")
self.sliderTraining.setMaximum(10)
self.sliderTraining.setPageStep(1)
self.sliderTraining.setOrientation(QtCore.Qt.Horizontal)
self.sliderTraining.setTickPosition(QtWidgets.QSlider.TicksAbove)
self.sliderTraining.setTickInterval(1)
self.sliderTraining.setObjectName("sliderTraining")
self.gridLayout.addWidget(self.sliderTraining, 1, 2, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem1, 0, 4, 1, 1)
self.btnPlayPause = QtWidgets.QPushButton(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnPlayPause.sizePolicy().hasHeightForWidth())
self.btnPlayPause.setSizePolicy(sizePolicy)
self.btnPlayPause.setText("")
self.btnPlayPause.setObjectName("btnPlayPause")
self.gridLayout.addWidget(self.btnPlayPause, 0, 3, 1, 1)
self.label_2 = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
self.label_2.setMinimumSize(QtCore.QSize(60, 20))
self.label_2.setText("")
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.verticalLayout.addLayout(self.gridLayout)
self.horizontalWidget = QtWidgets.QWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.horizontalWidget.sizePolicy().hasHeightForWidth())
self.horizontalWidget.setSizePolicy(sizePolicy)
self.horizontalWidget.setObjectName("horizontalWidget")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.horizontalWidget)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.verticalLayout.addWidget(self.horizontalWidget)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.labelGame = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.labelGame.sizePolicy().hasHeightForWidth())
self.labelGame.setSizePolicy(sizePolicy)
self.labelGame.setText("")
self.labelGame.setObjectName("labelGame")
self.horizontalLayout_4.addWidget(self.labelGame)
self.verticalLayout.addLayout(self.horizontalLayout_4)
self.formWidget = QtWidgets.QWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.formWidget.sizePolicy().hasHeightForWidth())
self.formWidget.setSizePolicy(sizePolicy)
self.formWidget.setObjectName("formWidget")
self.formLayout = QtWidgets.QFormLayout(self.formWidget)
self.formLayout.setObjectName("formLayout")
self.label = QtWidgets.QLabel(self.formWidget)
self.label.setObjectName("label")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
self.txt_name = QtWidgets.QLabel(self.formWidget)
self.txt_name.setText("")
self.txt_name.setObjectName("txt_name")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.txt_name)
self.verticalLayout.addWidget(self.formWidget)
self.horizontalWidget1 = QtWidgets.QWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.horizontalWidget1.sizePolicy().hasHeightForWidth())
self.horizontalWidget1.setSizePolicy(sizePolicy)
self.horizontalWidget1.setObjectName("horizontalWidget1")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalWidget1)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.btnDeleteAgent = QtWidgets.QPushButton(self.horizontalWidget1)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnDeleteAgent.sizePolicy().hasHeightForWidth())
self.btnDeleteAgent.setSizePolicy(sizePolicy)
self.btnDeleteAgent.setAutoFillBackground(False)
self.btnDeleteAgent.setObjectName("btnDeleteAgent")
self.horizontalLayout_2.addWidget(self.btnDeleteAgent)
self.verticalLayout.addWidget(self.horizontalWidget1)
self.horizontalLayout.addLayout(self.verticalLayout)
self.info_verticalLayout = QtWidgets.QVBoxLayout()
self.info_verticalLayout.setContentsMargins(-1, 0, -1, -1)
self.info_verticalLayout.setObjectName("info_verticalLayout")
self.list_title_label = QtWidgets.QLabel(self.centralwidget)
font = QtGui.QFont()
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.list_title_label.setFont(font)
self.list_title_label.setObjectName("list_title_label")
self.info_verticalLayout.addWidget(self.list_title_label)
self.info_scrollArea = QtWidgets.QScrollArea(self.centralwidget)
self.info_scrollArea.setWidgetResizable(True)
self.info_scrollArea.setObjectName("info_scrollArea")
self.info_scrollAreaWidgetContents = QtWidgets.QWidget()
self.info_scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 426, 362))
self.info_scrollAreaWidgetContents.setObjectName("info_scrollAreaWidgetContents")
self.info_verticalLayout_2 = QtWidgets.QVBoxLayout(self.info_scrollAreaWidgetContents)
self.info_verticalLayout_2.setObjectName("info_verticalLayout_2")
self.info_scrollArea.setWidget(self.info_scrollAreaWidgetContents)
self.info_verticalLayout.addWidget(self.info_scrollArea)
self.horizontalLayout.addLayout(self.info_verticalLayout)
Agent.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(Agent)
self.menubar.setGeometry(QtCore.QRect(0, 0, 884, 22))
self.menubar.setObjectName("menubar")
Agent.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(Agent)
self.statusbar.setObjectName("statusbar")
Agent.setStatusBar(self.statusbar)
self.retranslateUi(Agent)
QtCore.QMetaObject.connectSlotsByName(Agent)
def retranslateUi(self, Agent):
_translate = QtCore.QCoreApplication.translate
Agent.setWindowTitle(_translate("Agent", "MainWindow"))
self.labelStatus.setText(_translate("Agent", "Status: training"))
self.labelLoading.setText(_translate("Agent", "x"))
self.progressBarTraining.setFormat(_translate("Agent", "%p%"))
self.label.setText(_translate("Agent", "Name:"))
self.btnDeleteAgent.setText(_translate("Agent", "Delete agent"))
self.list_title_label.setText(_translate("Agent", "Games used for training"))