def setupUi(self, TrainWidget):
        TrainWidget.setObjectName("TrainWidget")
        TrainWidget.resize(698, 325)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(TrainWidget)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.frame_2 = QtWidgets.QFrame(TrainWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout = QtWidgets.QGridLayout(self.frame_2)
        self.gridLayout.setObjectName("gridLayout")
        self.promptWidget = PromptWidget(self.frame_2)
        self.promptWidget.setMinimumSize(QtCore.QSize(0, 40))
        self.promptWidget.setProperty("value", 0)
        self.promptWidget.setTextVisible(False)
        self.promptWidget.setOrientation(QtCore.Qt.Horizontal)
        self.promptWidget.setObjectName("promptWidget")
        self.gridLayout.addWidget(self.promptWidget, 1, 0, 1, 1)
        self.gestureView = GestureView(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gestureView.sizePolicy().hasHeightForWidth())
        self.gestureView.setSizePolicy(sizePolicy)
        self.gestureView.setObjectName("gestureView")
        self.gridLayout.addWidget(self.gestureView, 0, 0, 1, 1)
        self.horizontalLayout_2.addWidget(self.frame_2)
        self.frame = QtWidgets.QFrame(TrainWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setMinimumSize(QtCore.QSize(250, 0))
        self.frame.setMaximumSize(QtCore.QSize(250, 16777215))
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setMidLineWidth(0)
        self.frame.setObjectName("frame")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_3.setObjectName("gridLayout_3")
        spacerItem = QtWidgets.QSpacerItem(17, 85,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem, 1, 0, 1, 1)
        self.statusBox = QtWidgets.QGroupBox(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statusBox.sizePolicy().hasHeightForWidth())
        self.statusBox.setSizePolicy(sizePolicy)
        self.statusBox.setObjectName("statusBox")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.statusBox)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.sessionProgressBar = QtWidgets.QProgressBar(self.statusBox)
        self.sessionProgressBar.setProperty("value", 24)
        self.sessionProgressBar.setObjectName("sessionProgressBar")
        self.gridLayout_5.addWidget(self.sessionProgressBar, 2, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.startButton = QtWidgets.QPushButton(self.statusBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.startButton.sizePolicy().hasHeightForWidth())
        self.startButton.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon.fromTheme("media-playback-start")
        self.startButton.setIcon(icon)
        self.startButton.setObjectName("startButton")
        self.horizontalLayout.addWidget(self.startButton)
        self.pauseButton = QtWidgets.QPushButton(self.statusBox)
        self.pauseButton.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pauseButton.sizePolicy().hasHeightForWidth())
        self.pauseButton.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon.fromTheme("media-playback-pause")
        self.pauseButton.setIcon(icon)
        self.pauseButton.setObjectName("pauseButton")
        self.horizontalLayout.addWidget(self.pauseButton)
        self.gridLayout_5.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.redoButton = QtWidgets.QPushButton(self.statusBox)
        self.redoButton.setEnabled(False)
        icon = QtGui.QIcon.fromTheme("edit-undo")
        self.redoButton.setIcon(icon)
        self.redoButton.setObjectName("redoButton")
        self.gridLayout_5.addWidget(self.redoButton, 1, 0, 1, 1)
        self.gridLayout_3.addWidget(self.statusBox, 0, 0, 1, 1)
        self.horizontalLayout_2.addWidget(self.frame)

        self.retranslateUi(TrainWidget)
        QtCore.QMetaObject.connectSlotsByName(TrainWidget)
Beispiel #2
0
    def setupUi(self, TestWidget):
        TestWidget.setObjectName("TestWidget")
        TestWidget.resize(678, 454)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(TestWidget)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.frame_2 = QtWidgets.QFrame(TestWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.frame_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gestureDisplayLabel = GestureView(self.frame_2)
        self.gestureDisplayLabel.setObjectName("gestureDisplayLabel")
        self.gridLayout_2.addWidget(self.gestureDisplayLabel, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.frame_2)
        self.frame = QtWidgets.QFrame(TestWidget)
        self.frame.setMinimumSize(QtCore.QSize(200, 0))
        self.frame.setMaximumSize(QtCore.QSize(250, 16777215))
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout = QtWidgets.QGridLayout(self.frame)
        self.gridLayout.setObjectName("gridLayout")
        self.sessionInfoBox = QtWidgets.QGroupBox(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sessionInfoBox.sizePolicy().hasHeightForWidth())
        self.sessionInfoBox.setSizePolicy(sizePolicy)
        self.sessionInfoBox.setObjectName("sessionInfoBox")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.sessionInfoBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.sessionTypeLabel = QtWidgets.QLabel(self.sessionInfoBox)
        self.sessionTypeLabel.setObjectName("sessionTypeLabel")
        self.horizontalLayout_2.addWidget(self.sessionTypeLabel)
        self.sessionTypeComboBox = QtWidgets.QComboBox(self.sessionInfoBox)
        self.sessionTypeComboBox.setObjectName("sessionTypeComboBox")
        self.horizontalLayout_2.addWidget(self.sessionTypeComboBox)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.trainingLabel = QtWidgets.QLabel(self.sessionInfoBox)
        self.trainingLabel.setObjectName("trainingLabel")
        self.verticalLayout.addWidget(self.trainingLabel)
        self.trainingList = QtWidgets.QListWidget(self.sessionInfoBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.trainingList.sizePolicy().hasHeightForWidth())
        self.trainingList.setSizePolicy(sizePolicy)
        self.trainingList.setProperty("showDropIndicator", False)
        self.trainingList.setAlternatingRowColors(False)
        self.trainingList.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
        self.trainingList.setResizeMode(QtWidgets.QListView.Fixed)
        self.trainingList.setObjectName("trainingList")
        self.verticalLayout.addWidget(self.trainingList)
        self.trainButton = QtWidgets.QPushButton(self.sessionInfoBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.trainButton.sizePolicy().hasHeightForWidth())
        self.trainButton.setSizePolicy(sizePolicy)
        self.trainButton.setDefault(False)
        self.trainButton.setFlat(False)
        self.trainButton.setObjectName("trainButton")
        self.verticalLayout.addWidget(self.trainButton)
        self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.sessionInfoBox, 0, 0, 1, 1)
        self.controlsBox = QtWidgets.QGroupBox(self.frame)
        self.controlsBox.setObjectName("controlsBox")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.controlsBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.sessionProgressBar = QtWidgets.QProgressBar(self.controlsBox)
        self.sessionProgressBar.setProperty("value", 24)
        self.sessionProgressBar.setObjectName("sessionProgressBar")
        self.gridLayout_4.addWidget(self.sessionProgressBar, 2, 0, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.startButton = QtWidgets.QPushButton(self.controlsBox)
        icon = QtGui.QIcon.fromTheme("media-playback-start")
        self.startButton.setIcon(icon)
        self.startButton.setObjectName("startButton")
        self.horizontalLayout_4.addWidget(self.startButton)
        self.pauseButton = QtWidgets.QPushButton(self.controlsBox)
        self.pauseButton.setEnabled(False)
        icon = QtGui.QIcon.fromTheme("media-playback-pause")
        self.pauseButton.setIcon(icon)
        self.pauseButton.setObjectName("pauseButton")
        self.horizontalLayout_4.addWidget(self.pauseButton)
        self.gridLayout_4.addLayout(self.horizontalLayout_4, 3, 0, 1, 1)
        self.gridLayout.addWidget(self.controlsBox, 1, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.frame)

        self.retranslateUi(TestWidget)
        QtCore.QMetaObject.connectSlotsByName(TestWidget)