def _set_ip_validator(self, line_edit): """ @param line_edit of type QLineEdit """ _range = '(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])' # [0, 255] reg_ex = QtCore.QRegExp(r'^' + _range + '\\.' + _range + '\\.' + _range + '\\.' + _range + '$') ip_validator = QtGui.QRegExpValidator(reg_ex, line_edit) line_edit.setValidator(ip_validator)
def on_drop(self, event): # self.logger.debug("Drop event: {}".format(event.mimeData().text())) if event.mimeData().hasFormat(self.get_block_mime_type()): # clear selection self.scene.clear_selection() event_data = event.mimeData().data(self.get_block_mime_type()) data_stream = QtCore.QDataStream(event_data, QtCore.QIODevice.ReadOnly) item_pixmap = QtGui.QPixmap() data_stream >> item_pixmap try: op_code = data_stream.readInt() except Exception as e: self.logger.warning( "'readInt' does not exist in QDataStream, using readInt64 instead. | {}" .format(e)) op_code = data_stream.readInt64() item_text = data_stream.readQString() # check if the block has a "start" pattern and the scene already contains one: start_block = self.get_block(pattern="start") if "start" == item_text.lower() and start_block is not None: to_display = "The scene has already a start block! The drop is ignored." self.logger.warning(to_display) start_block.set_selected(True) self.start_block_observers.notify_all(to_display) event.ignore() else: mouse_position = event.pos() scene_position = self.get_scene_position(mouse_position) self.logger.debug( "Item with: {} | {} | mouse: {} | scene pos: {}".format( op_code, item_text, mouse_position, scene_position)) # new interaction block self.create_interaction_block( title=item_text, pos=[scene_position.x(), scene_position.y()], pattern=item_text.lower()) # self.add_block(title=item_text, num_inputs=2, num_outputs=1, # pos=[scene_position.x(), scene_position.y()], # observer=self.on_block_selected) self.store("Added new {}".format(item_text)) event.setDropAction(QtCore.Qt.MoveAction) event.accept() else: self.logger.debug("*** drop ignored") event.ignore()
def _init_dock_widget(self, parent): self.simulation_dock_widget = QtWidgets.QDockWidget( "Simulation", parent) size_policy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) size_policy.setHorizontalStretch(0) size_policy.setVerticalStretch(0) size_policy.setHeightForWidth( self.simulation_dock_widget.sizePolicy().hasHeightForWidth()) self.simulation_dock_widget.setSizePolicy(size_policy) self.simulation_dock_widget.setMinimumSize(QtCore.QSize(98, 150)) self.simulation_dock_widget.setFloating(False) self.simulation_dock_widget.setFeatures( QtWidgets.QDockWidget.AllDockWidgetFeatures) self.simulation_dock_widget.setAllowedAreas( QtCore.Qt.AllDockWidgetAreas) self.simulation_dock_widget.setObjectName("simulationDockWidget") # layout widget_content = QtWidgets.QWidget() widget_content.setObjectName("simulationDockWidgetContents") grid_layout = QtWidgets.QGridLayout(widget_content) grid_layout.setContentsMargins(11, 11, 11, 11) grid_layout.setSpacing(6) grid_layout.setObjectName("simulationGridLayout") # display text edit self.interaction_log = QtWidgets.QTextEdit(widget_content) self.interaction_log.setAcceptDrops(False) self.interaction_log.setAutoFillBackground(True) self.interaction_log.setStyleSheet("background: white") self.interaction_log.setUndoRedoEnabled(False) self.interaction_log.setReadOnly(True) self.interaction_log.setAcceptRichText(True) self.interaction_log.setObjectName("simulationTextEdit") grid_layout.addWidget(self.interaction_log, 0, 0, 1, 1) # user input self.user_input = QtWidgets.QLineEdit(widget_content) self.user_input.setPlaceholderText("User Input") self.user_input.returnPressed.connect(self.check_user_input) self.user_input.setObjectName("simulationLineEdit") grid_layout.addWidget(self.user_input, 1, 0, 1, 1) widget_content.setLayout(grid_layout) self.simulation_dock_widget.setWidget(widget_content)
def setupUi(self, ConfirmationDialog): ConfirmationDialog.setObjectName("ConfirmationDialog") ConfirmationDialog.resize(400, 292) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(ConfirmationDialog.sizePolicy().hasHeightForWidth()) ConfirmationDialog.setSizePolicy(sizePolicy) ConfirmationDialog.setMinimumSize(QtCore.QSize(0, 0)) ConfirmationDialog.setMaximumSize(QtCore.QSize(700, 500)) self.gridLayout = QtWidgets.QGridLayout(ConfirmationDialog) self.gridLayout.setObjectName("gridLayout") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.line_2 = QtWidgets.QFrame(ConfirmationDialog) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.gridLayout_2.addWidget(self.line_2, 0, 0, 1, 1) self.label = QtWidgets.QLabel(ConfirmationDialog) font = QtGui.QFont() font.setFamily("Courier New") font.setPointSize(16) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(ConfirmationDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.No|QtWidgets.QDialogButtonBox.Yes) self.buttonBox.setObjectName("buttonBox") self.gridLayout_2.addWidget(self.buttonBox, 4, 0, 1, 1) self.line = QtWidgets.QFrame(ConfirmationDialog) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_2.addWidget(self.line, 3, 0, 1, 1) self.groupBox = QtWidgets.QGroupBox(ConfirmationDialog) font = QtGui.QFont() font.setFamily("Courier New") font.setPointSize(14) font.setBold(False) font.setWeight(50) self.groupBox.setFont(font) self.groupBox.setObjectName("groupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.confirmationTextEdit = QtWidgets.QTextEdit(self.groupBox) self.confirmationTextEdit.setAutoFillBackground(True) self.confirmationTextEdit.setUndoRedoEnabled(False) self.confirmationTextEdit.setAcceptRichText(False) self.confirmationTextEdit.setTextInteractionFlags(QtCore.Qt.NoTextInteraction) self.confirmationTextEdit.setObjectName("confirmationTextEdit") self.gridLayout_3.addWidget(self.confirmationTextEdit, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox, 2, 0, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1) self.retranslateUi(ConfirmationDialog) self.buttonBox.accepted.connect(ConfirmationDialog.accept) self.buttonBox.rejected.connect(ConfirmationDialog.reject) QtCore.QMetaObject.connectSlotsByName(ConfirmationDialog)
def setupUi(self, BlockManagerGUI): BlockManagerGUI.setObjectName("BlockManagerGUI") BlockManagerGUI.resize(649, 525) self.centralWidget = QtWidgets.QWidget(BlockManagerGUI) self.centralWidget.setObjectName("centralWidget") self.gridLayout_4 = QtWidgets.QGridLayout(self.centralWidget) self.gridLayout_4.setContentsMargins(11, 11, 11, 11) self.gridLayout_4.setSpacing(6) self.gridLayout_4.setObjectName("gridLayout_4") self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setSpacing(6) self.gridLayout_3.setObjectName("gridLayout_3") self.label = QtWidgets.QLabel(self.centralWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Courier New") font.setPointSize(14) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1) self.designPanelLayout = QtWidgets.QGridLayout() self.designPanelLayout.setSpacing(6) self.designPanelLayout.setObjectName("designPanelLayout") self.widget = QtWidgets.QWidget(self.centralWidget) self.widget.setObjectName("widget") self.designPanelLayout.addWidget(self.widget, 0, 0, 1, 1) self.gridLayout_3.addLayout(self.designPanelLayout, 1, 0, 1, 1) self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1) BlockManagerGUI.setCentralWidget(self.centralWidget) self.menuBar = QtWidgets.QMenuBar(BlockManagerGUI) self.menuBar.setGeometry(QtCore.QRect(0, 0, 649, 22)) self.menuBar.setObjectName("menuBar") BlockManagerGUI.setMenuBar(self.menuBar) self.mainToolBar = QtWidgets.QToolBar(BlockManagerGUI) self.mainToolBar.setObjectName("mainToolBar") BlockManagerGUI.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar) self.statusBar = QtWidgets.QStatusBar(BlockManagerGUI) self.statusBar.setObjectName("statusBar") BlockManagerGUI.setStatusBar(self.statusBar) self.dockWidget = QtWidgets.QDockWidget(BlockManagerGUI) self.dockWidget.setObjectName("dockWidget") self.dockWidgetContents = QtWidgets.QWidget() self.dockWidgetContents.setObjectName("dockWidgetContents") self.gridLayout = QtWidgets.QGridLayout(self.dockWidgetContents) self.gridLayout.setContentsMargins(11, 11, 11, 11) self.gridLayout.setSpacing(6) self.gridLayout.setObjectName("gridLayout") spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 1, 0, 1, 1) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setSpacing(6) self.gridLayout_2.setObjectName("gridLayout_2") self.resetViewPushButton = QtWidgets.QPushButton( self.dockWidgetContents) self.resetViewPushButton.setObjectName("resetViewPushButton") self.gridLayout_2.addWidget(self.resetViewPushButton, 0, 0, 1, 1) self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1) self.dockWidget.setWidget(self.dockWidgetContents) BlockManagerGUI.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget) self.retranslateUi(BlockManagerGUI) QtCore.QMetaObject.connectSlotsByName(BlockManagerGUI)
def setupUi(self, DBDialog): DBDialog.setObjectName("DBDialog") DBDialog.resize(474, 300) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(DBDialog.sizePolicy().hasHeightForWidth()) DBDialog.setSizePolicy(sizePolicy) DBDialog.setMinimumSize(QtCore.QSize(400, 300)) DBDialog.setMaximumSize(QtCore.QSize(500, 400)) self.gridLayout_2 = QtWidgets.QGridLayout(DBDialog) self.gridLayout_2.setObjectName("gridLayout_2") self.groupBox = QtWidgets.QGroupBox(DBDialog) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(True) font.setWeight(75) self.groupBox.setFont(font) self.groupBox.setObjectName("groupBox") self.gridLayout = QtWidgets.QGridLayout(self.groupBox) self.gridLayout.setObjectName("gridLayout") self.gridLayout_12 = QtWidgets.QGridLayout() self.gridLayout_12.setObjectName("gridLayout_12") self.label = QtWidgets.QLabel(self.groupBox) self.label.setText("") self.label.setObjectName("label") self.gridLayout_12.addWidget(self.label, 5, 0, 1, 3) self.robotIPLabel = QtWidgets.QLabel(self.groupBox) self.robotIPLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.robotIPLabel.setObjectName("robotIPLabel") self.gridLayout_12.addWidget(self.robotIPLabel, 0, 0, 1, 1) self.generateNamePushButton = QtWidgets.QPushButton(self.groupBox) self.generateNamePushButton.setObjectName("generateNamePushButton") self.gridLayout_12.addWidget(self.generateNamePushButton, 2, 2, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(self.groupBox) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout_12.addWidget(self.buttonBox, 6, 1, 1, 2) self.dbNameLineEdit = QtWidgets.QLineEdit(self.groupBox) self.dbNameLineEdit.setObjectName("dbNameLineEdit") self.gridLayout_12.addWidget(self.dbNameLineEdit, 2, 1, 1, 1) self.portLabel = QtWidgets.QLabel(self.groupBox) self.portLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.portLabel.setObjectName("portLabel") self.gridLayout_12.addWidget(self.portLabel, 2, 0, 1, 1) self.line = QtWidgets.QFrame(self.groupBox) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_12.addWidget(self.line, 1, 0, 1, 3) self.setDBPushButton = QtWidgets.QPushButton(self.groupBox) self.setDBPushButton.setObjectName("setDBPushButton") self.gridLayout_12.addWidget(self.setDBPushButton, 3, 1, 1, 2) self.dbNamesComboBox = QtWidgets.QComboBox(self.groupBox) self.dbNamesComboBox.setObjectName("dbNamesComboBox") self.gridLayout_12.addWidget(self.dbNamesComboBox, 0, 1, 1, 2) spacerItem = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_12.addItem(spacerItem, 8, 1, 1, 1) self.line_2 = QtWidgets.QFrame(self.groupBox) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.gridLayout_12.addWidget(self.line_2, 4, 0, 1, 3) self.gridLayout.addLayout(self.gridLayout_12, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1) self.retranslateUi(DBDialog) self.buttonBox.accepted.connect(DBDialog.accept) self.buttonBox.rejected.connect(DBDialog.reject) QtCore.QMetaObject.connectSlotsByName(DBDialog)
def setupUi(self, SpotifyDialog): SpotifyDialog.setObjectName("SpotifyDialog") SpotifyDialog.resize(424, 564) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( SpotifyDialog.sizePolicy().hasHeightForWidth()) SpotifyDialog.setSizePolicy(sizePolicy) SpotifyDialog.setMinimumSize(QtCore.QSize(0, 0)) SpotifyDialog.setMaximumSize(QtCore.QSize(750, 1000)) self.gridLayout_5 = QtWidgets.QGridLayout(SpotifyDialog) self.gridLayout_5.setObjectName("gridLayout_5") self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") spacerItem = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 6, 0, 1, 1) self.defaultSettingsCheckBox = QtWidgets.QCheckBox(SpotifyDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.defaultSettingsCheckBox.sizePolicy().hasHeightForWidth()) self.defaultSettingsCheckBox.setSizePolicy(sizePolicy) self.defaultSettingsCheckBox.setLayoutDirection(QtCore.Qt.LeftToRight) self.defaultSettingsCheckBox.setChecked(True) self.defaultSettingsCheckBox.setObjectName("defaultSettingsCheckBox") self.gridLayout_3.addWidget(self.defaultSettingsCheckBox, 1, 0, 1, 1) self.connectButton = QtWidgets.QPushButton(SpotifyDialog) self.connectButton.setObjectName("connectButton") self.gridLayout_3.addWidget(self.connectButton, 1, 1, 1, 1) self.settingsGroupBox = QtWidgets.QGroupBox(SpotifyDialog) self.settingsGroupBox.setEnabled(False) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(True) font.setWeight(75) self.settingsGroupBox.setFont(font) self.settingsGroupBox.setObjectName("settingsGroupBox") self.gridLayout = QtWidgets.QGridLayout(self.settingsGroupBox) self.gridLayout.setObjectName("gridLayout") self.gridLayout_12 = QtWidgets.QGridLayout() self.gridLayout_12.setObjectName("gridLayout_12") self.label_3 = QtWidgets.QLabel(self.settingsGroupBox) self.label_3.setObjectName("label_3") self.gridLayout_12.addWidget(self.label_3, 1, 0, 1, 1) self.usernameLineEdit = QtWidgets.QLineEdit(self.settingsGroupBox) self.usernameLineEdit.setObjectName("usernameLineEdit") self.gridLayout_12.addWidget(self.usernameLineEdit, 0, 1, 1, 2) self.label_4 = QtWidgets.QLabel(self.settingsGroupBox) self.label_4.setObjectName("label_4") self.gridLayout_12.addWidget(self.label_4, 0, 0, 1, 1) self.redirectURILineEdit = QtWidgets.QLineEdit(self.settingsGroupBox) self.redirectURILineEdit.setObjectName("redirectURILineEdit") self.gridLayout_12.addWidget(self.redirectURILineEdit, 3, 1, 1, 2) self.clientSecretLineEdit = QtWidgets.QLineEdit(self.settingsGroupBox) self.clientSecretLineEdit.setObjectName("clientSecretLineEdit") self.gridLayout_12.addWidget(self.clientSecretLineEdit, 2, 1, 1, 2) self.label_2 = QtWidgets.QLabel(self.settingsGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setObjectName("label_2") self.gridLayout_12.addWidget(self.label_2, 2, 0, 1, 1) self.label = QtWidgets.QLabel(self.settingsGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout_12.addWidget(self.label, 3, 0, 1, 1) self.clientIDLineEdit = QtWidgets.QLineEdit(self.settingsGroupBox) self.clientIDLineEdit.setObjectName("clientIDLineEdit") self.gridLayout_12.addWidget(self.clientIDLineEdit, 1, 1, 1, 2) self.gridLayout.addLayout(self.gridLayout_12, 0, 1, 1, 1) self.gridLayout_3.addWidget(self.settingsGroupBox, 0, 0, 1, 2) self.gridLayout_4 = QtWidgets.QGridLayout() self.gridLayout_4.setObjectName("gridLayout_4") self.playButton = QtWidgets.QPushButton(SpotifyDialog) self.playButton.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.playButton.sizePolicy().hasHeightForWidth()) self.playButton.setSizePolicy(sizePolicy) self.playButton.setObjectName("playButton") self.gridLayout_4.addWidget(self.playButton, 3, 2, 1, 1) self.playlistComboBox = QtWidgets.QComboBox(SpotifyDialog) self.playlistComboBox.setObjectName("playlistComboBox") self.gridLayout_4.addWidget(self.playlistComboBox, 1, 1, 1, 2) self.line_2 = QtWidgets.QFrame(SpotifyDialog) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.gridLayout_4.addWidget(self.line_2, 0, 0, 1, 3) self.label_5 = QtWidgets.QLabel(SpotifyDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setObjectName("label_5") self.gridLayout_4.addWidget(self.label_5, 1, 0, 1, 1) self.trackComboBox = QtWidgets.QComboBox(SpotifyDialog) self.trackComboBox.setObjectName("trackComboBox") self.gridLayout_4.addWidget(self.trackComboBox, 2, 1, 1, 2) self.label_6 = QtWidgets.QLabel(SpotifyDialog) self.label_6.setObjectName("label_6") self.gridLayout_4.addWidget(self.label_6, 2, 0, 1, 1) self.gridLayout_3.addLayout(self.gridLayout_4, 2, 0, 1, 2) self.groupBox_2 = QtWidgets.QGroupBox(SpotifyDialog) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName("gridLayout_2") self.messageTextEdit = QtWidgets.QTextEdit(self.groupBox_2) self.messageTextEdit.setAutoFillBackground(True) self.messageTextEdit.setStyleSheet("background: rgb(76, 76, 76)") self.messageTextEdit.setReadOnly(True) self.messageTextEdit.setObjectName("messageTextEdit") self.gridLayout_2.addWidget(self.messageTextEdit, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox_2, 4, 0, 1, 2) self.buttonBox = QtWidgets.QDialogButtonBox(SpotifyDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout_3.addWidget(self.buttonBox, 5, 0, 1, 2) self.line = QtWidgets.QFrame(SpotifyDialog) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_3.addWidget(self.line, 3, 0, 1, 2) self.gridLayout_5.addLayout(self.gridLayout_3, 0, 0, 1, 1) self.retranslateUi(SpotifyDialog) self.buttonBox.accepted.connect(SpotifyDialog.accept) self.buttonBox.rejected.connect(SpotifyDialog.reject) QtCore.QMetaObject.connectSlotsByName(SpotifyDialog) SpotifyDialog.setTabOrder(self.usernameLineEdit, self.clientIDLineEdit) SpotifyDialog.setTabOrder(self.clientIDLineEdit, self.clientSecretLineEdit) SpotifyDialog.setTabOrder(self.clientSecretLineEdit, self.redirectURILineEdit) SpotifyDialog.setTabOrder(self.redirectURILineEdit, self.defaultSettingsCheckBox) SpotifyDialog.setTabOrder(self.defaultSettingsCheckBox, self.connectButton) SpotifyDialog.setTabOrder(self.connectButton, self.playlistComboBox) SpotifyDialog.setTabOrder(self.playlistComboBox, self.trackComboBox) SpotifyDialog.setTabOrder(self.trackComboBox, self.playButton) SpotifyDialog.setTabOrder(self.playButton, self.messageTextEdit)
def setupUi(self, ImportBlocksDialog): ImportBlocksDialog.setObjectName("ImportBlocksDialog") ImportBlocksDialog.resize(494, 431) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( ImportBlocksDialog.sizePolicy().hasHeightForWidth()) ImportBlocksDialog.setSizePolicy(sizePolicy) ImportBlocksDialog.setMinimumSize(QtCore.QSize(0, 0)) ImportBlocksDialog.setMaximumSize(QtCore.QSize(1000, 800)) self.gridLayout_3 = QtWidgets.QGridLayout(ImportBlocksDialog) self.gridLayout_3.setObjectName("gridLayout_3") self.groupBox = QtWidgets.QGroupBox(ImportBlocksDialog) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(True) font.setWeight(75) self.groupBox.setFont(font) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.gridLayout_12 = QtWidgets.QGridLayout() self.gridLayout_12.setObjectName("gridLayout_12") self.portLabel = QtWidgets.QLabel(self.groupBox) font = QtGui.QFont() font.setFamily("Courier New") self.portLabel.setFont(font) self.portLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.portLabel.setObjectName("portLabel") self.gridLayout_12.addWidget(self.portLabel, 1, 0, 1, 1) self.fileNameLineEdit = QtWidgets.QLineEdit(self.groupBox) self.fileNameLineEdit.setObjectName("fileNameLineEdit") self.gridLayout_12.addWidget(self.fileNameLineEdit, 2, 0, 1, 3) self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout.setObjectName("gridLayout") self.messageTextEdit = QtWidgets.QTextEdit(self.groupBox_2) self.messageTextEdit.setAutoFillBackground(True) self.messageTextEdit.setStyleSheet("background: rgb(76, 76, 76)") self.messageTextEdit.setObjectName("messageTextEdit") self.gridLayout.addWidget(self.messageTextEdit, 0, 0, 1, 1) self.gridLayout_12.addWidget(self.groupBox_2, 4, 0, 1, 4) spacerItem = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_12.addItem(spacerItem, 7, 1, 1, 1) self.selectFileToolButton = QtWidgets.QToolButton(self.groupBox) self.selectFileToolButton.setObjectName("selectFileToolButton") self.gridLayout_12.addWidget(self.selectFileToolButton, 2, 3, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(self.groupBox) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout_12.addWidget(self.buttonBox, 5, 0, 1, 4) self.line = QtWidgets.QFrame(self.groupBox) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_12.addWidget(self.line, 0, 0, 1, 4) self.line_2 = QtWidgets.QFrame(self.groupBox) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.gridLayout_12.addWidget(self.line_2, 3, 0, 1, 4) self.gridLayout_2.addLayout(self.gridLayout_12, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.retranslateUi(ImportBlocksDialog) self.buttonBox.accepted.connect(ImportBlocksDialog.accept) self.buttonBox.rejected.connect(ImportBlocksDialog.reject) QtCore.QMetaObject.connectSlotsByName(ImportBlocksDialog)
def setupUi(self, EditBlockDialog): EditBlockDialog.setObjectName("EditBlockDialog") EditBlockDialog.resize(449, 551) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(EditBlockDialog.sizePolicy().hasHeightForWidth()) EditBlockDialog.setSizePolicy(sizePolicy) EditBlockDialog.setMinimumSize(QtCore.QSize(0, 0)) EditBlockDialog.setMaximumSize(QtCore.QSize(1000, 1000)) self.gridLayout_11 = QtWidgets.QGridLayout(EditBlockDialog) self.gridLayout_11.setObjectName("gridLayout_11") self.buttonBox = QtWidgets.QDialogButtonBox(EditBlockDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout_11.addWidget(self.buttonBox, 2, 0, 1, 1) self.tabWidget = QtWidgets.QTabWidget(EditBlockDialog) self.tabWidget.setEnabled(True) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.tabWidget.setFont(font) self.tabWidget.setObjectName("tabWidget") self.propertiesTab = QtWidgets.QWidget() self.propertiesTab.setObjectName("propertiesTab") self.gridLayout_24 = QtWidgets.QGridLayout(self.propertiesTab) self.gridLayout_24.setObjectName("gridLayout_24") spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_24.addItem(spacerItem, 1, 0, 1, 1) self.gridLayout_13 = QtWidgets.QGridLayout() self.gridLayout_13.setObjectName("gridLayout_13") self.line_7 = QtWidgets.QFrame(self.propertiesTab) self.line_7.setFrameShape(QtWidgets.QFrame.HLine) self.line_7.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_7.setObjectName("line_7") self.gridLayout_13.addWidget(self.line_7, 3, 0, 1, 2) self.animationComboBox = QtWidgets.QComboBox(self.propertiesTab) self.animationComboBox.setObjectName("animationComboBox") self.animationComboBox.addItem("") self.gridLayout_13.addWidget(self.animationComboBox, 5, 1, 1, 1) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.blockDescriptionLineEdit = QtWidgets.QLineEdit(self.propertiesTab) self.blockDescriptionLineEdit.setObjectName("blockDescriptionLineEdit") self.gridLayout_2.addWidget(self.blockDescriptionLineEdit, 1, 1, 1, 1) self.label_14 = QtWidgets.QLabel(self.propertiesTab) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_14.setFont(font) self.label_14.setObjectName("label_14") self.gridLayout_2.addWidget(self.label_14, 1, 0, 1, 1) self.label_2 = QtWidgets.QLabel(self.propertiesTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1) self.patternLineEdit = QtWidgets.QLineEdit(self.propertiesTab) self.patternLineEdit.setEnabled(False) self.patternLineEdit.setObjectName("patternLineEdit") self.gridLayout_2.addWidget(self.patternLineEdit, 0, 1, 1, 1) self.gridLayout_13.addLayout(self.gridLayout_2, 0, 0, 1, 2) self.line_10 = QtWidgets.QFrame(self.propertiesTab) self.line_10.setFrameShape(QtWidgets.QFrame.HLine) self.line_10.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_10.setObjectName("line_10") self.gridLayout_13.addWidget(self.line_10, 1, 0, 1, 2) self.line_9 = QtWidgets.QFrame(self.propertiesTab) self.line_9.setFrameShape(QtWidgets.QFrame.HLine) self.line_9.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_9.setObjectName("line_9") self.gridLayout_13.addWidget(self.line_9, 6, 0, 1, 2) self.groupBox_5 = QtWidgets.QGroupBox(self.propertiesTab) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout_20 = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout_20.setObjectName("gridLayout_20") self.gridLayout_19 = QtWidgets.QGridLayout() self.gridLayout_19.setObjectName("gridLayout_19") self.messageTextEdit = QtWidgets.QTextEdit(self.groupBox_5) self.messageTextEdit.setMinimumSize(QtCore.QSize(0, 50)) self.messageTextEdit.setMaximumSize(QtCore.QSize(16777215, 200)) self.messageTextEdit.setObjectName("messageTextEdit") self.gridLayout_19.addWidget(self.messageTextEdit, 0, 0, 1, 2) self.gridLayout_20.addLayout(self.gridLayout_19, 0, 0, 1, 1) self.gridLayout_13.addWidget(self.groupBox_5, 2, 0, 1, 2) self.animationLineEdit = QtWidgets.QLineEdit(self.propertiesTab) self.animationLineEdit.setObjectName("animationLineEdit") self.gridLayout_13.addWidget(self.animationLineEdit, 4, 1, 1, 1) self.label = QtWidgets.QLabel(self.propertiesTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout_13.addWidget(self.label, 4, 0, 1, 1) self.gridLayout_24.addLayout(self.gridLayout_13, 0, 0, 1, 1) self.tabWidget.addTab(self.propertiesTab, "") self.moduleTab = QtWidgets.QWidget() self.moduleTab.setObjectName("moduleTab") self.gridLayout_32 = QtWidgets.QGridLayout(self.moduleTab) self.gridLayout_32.setObjectName("gridLayout_32") self.gridLayout_27 = QtWidgets.QGridLayout() self.gridLayout_27.setObjectName("gridLayout_27") spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_27.addItem(spacerItem1, 4, 0, 1, 1) self.line_8 = QtWidgets.QFrame(self.moduleTab) self.line_8.setFrameShape(QtWidgets.QFrame.HLine) self.line_8.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_8.setObjectName("line_8") self.gridLayout_27.addWidget(self.line_8, 3, 0, 1, 1) self.gridLayout_26 = QtWidgets.QGridLayout() self.gridLayout_26.setObjectName("gridLayout_26") self.moduleNameComboBox = QtWidgets.QComboBox(self.moduleTab) self.moduleNameComboBox.setEnabled(False) self.moduleNameComboBox.setObjectName("moduleNameComboBox") self.gridLayout_26.addWidget(self.moduleNameComboBox, 0, 1, 1, 2) self.label_25 = QtWidgets.QLabel(self.moduleTab) self.label_25.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_25.sizePolicy().hasHeightForWidth()) self.label_25.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Courier") font.setBold(False) font.setWeight(50) self.label_25.setFont(font) self.label_25.setObjectName("label_25") self.gridLayout_26.addWidget(self.label_25, 0, 0, 1, 1) self.gridLayout_27.addLayout(self.gridLayout_26, 2, 0, 1, 1) self.moduleInteractionGroupBox = QtWidgets.QGroupBox(self.moduleTab) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(True) font.setWeight(75) self.moduleInteractionGroupBox.setFont(font) self.moduleInteractionGroupBox.setObjectName("moduleInteractionGroupBox") self.gridLayout_23 = QtWidgets.QGridLayout(self.moduleInteractionGroupBox) self.gridLayout_23.setObjectName("gridLayout_23") self.gridLayout_25 = QtWidgets.QGridLayout() self.gridLayout_25.setObjectName("gridLayout_25") self.moduleRandomizeRadioButton = QtWidgets.QRadioButton(self.moduleInteractionGroupBox) self.moduleRandomizeRadioButton.setObjectName("moduleRandomizeRadioButton") self.gridLayout_25.addWidget(self.moduleRandomizeRadioButton, 3, 0, 1, 1) self.moduleFileNameLineEdit = QtWidgets.QLineEdit(self.moduleInteractionGroupBox) self.moduleFileNameLineEdit.setObjectName("moduleFileNameLineEdit") self.gridLayout_25.addWidget(self.moduleFileNameLineEdit, 1, 0, 1, 1) self.moduleFolderNameLineEdit = QtWidgets.QLineEdit(self.moduleInteractionGroupBox) self.moduleFolderNameLineEdit.setEnabled(False) self.moduleFolderNameLineEdit.setObjectName("moduleFolderNameLineEdit") self.gridLayout_25.addWidget(self.moduleFolderNameLineEdit, 4, 0, 1, 1) self.moduleFileRadioButton = QtWidgets.QRadioButton(self.moduleInteractionGroupBox) self.moduleFileRadioButton.setChecked(True) self.moduleFileRadioButton.setObjectName("moduleFileRadioButton") self.gridLayout_25.addWidget(self.moduleFileRadioButton, 0, 0, 1, 1) self.moduleSelectFolderToolButton = QtWidgets.QToolButton(self.moduleInteractionGroupBox) self.moduleSelectFolderToolButton.setEnabled(False) self.moduleSelectFolderToolButton.setObjectName("moduleSelectFolderToolButton") self.gridLayout_25.addWidget(self.moduleSelectFolderToolButton, 4, 1, 1, 1) self.moduleSelectFileToolButton = QtWidgets.QToolButton(self.moduleInteractionGroupBox) self.moduleSelectFileToolButton.setObjectName("moduleSelectFileToolButton") self.gridLayout_25.addWidget(self.moduleSelectFileToolButton, 1, 1, 1, 1) self.line_4 = QtWidgets.QFrame(self.moduleInteractionGroupBox) self.line_4.setFrameShape(QtWidgets.QFrame.HLine) self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_4.setObjectName("line_4") self.gridLayout_25.addWidget(self.line_4, 2, 0, 1, 2) self.gridLayout_23.addLayout(self.gridLayout_25, 0, 0, 1, 1) self.gridLayout_27.addWidget(self.moduleInteractionGroupBox, 0, 0, 1, 1) self.line_12 = QtWidgets.QFrame(self.moduleTab) self.line_12.setFrameShape(QtWidgets.QFrame.HLine) self.line_12.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_12.setObjectName("line_12") self.gridLayout_27.addWidget(self.line_12, 1, 0, 1, 1) self.gridLayout_32.addLayout(self.gridLayout_27, 0, 0, 1, 1) self.tabWidget.addTab(self.moduleTab, "") self.actionTab = QtWidgets.QWidget() self.actionTab.setObjectName("actionTab") self.gridLayout_31 = QtWidgets.QGridLayout(self.actionTab) self.gridLayout_31.setObjectName("gridLayout_31") self.gridLayout_30 = QtWidgets.QGridLayout() self.gridLayout_30.setObjectName("gridLayout_30") self.gridLayout_17 = QtWidgets.QGridLayout() self.gridLayout_17.setObjectName("gridLayout_17") self.actionComboBox = QtWidgets.QComboBox(self.actionTab) self.actionComboBox.setObjectName("actionComboBox") self.gridLayout_17.addWidget(self.actionComboBox, 0, 1, 1, 1) self.label_16 = QtWidgets.QLabel(self.actionTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_16.sizePolicy().hasHeightForWidth()) self.label_16.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Courier") font.setBold(False) font.setWeight(50) self.label_16.setFont(font) self.label_16.setObjectName("label_16") self.gridLayout_17.addWidget(self.label_16, 0, 0, 1, 1) self.gridLayout_30.addLayout(self.gridLayout_17, 0, 0, 1, 3) self.line_3 = QtWidgets.QFrame(self.actionTab) self.line_3.setFrameShape(QtWidgets.QFrame.HLine) self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_3.setObjectName("line_3") self.gridLayout_30.addWidget(self.line_3, 1, 0, 1, 3) self.timeGroupBox = QtWidgets.QGroupBox(self.actionTab) self.timeGroupBox.setObjectName("timeGroupBox") self.gridLayout_12 = QtWidgets.QGridLayout(self.timeGroupBox) self.gridLayout_12.setObjectName("gridLayout_12") self.timeSpinBox = QtWidgets.QSpinBox(self.timeGroupBox) self.timeSpinBox.setMaximum(600) self.timeSpinBox.setSingleStep(10) self.timeSpinBox.setProperty("value", 30) self.timeSpinBox.setObjectName("timeSpinBox") self.gridLayout_12.addWidget(self.timeSpinBox, 0, 0, 1, 1) self.label_21 = QtWidgets.QLabel(self.timeGroupBox) self.label_21.setObjectName("label_21") self.gridLayout_12.addWidget(self.label_21, 0, 1, 1, 1) self.gridLayout_30.addWidget(self.timeGroupBox, 3, 1, 1, 2) self.musicGroupBox = QtWidgets.QGroupBox(self.actionTab) self.musicGroupBox.setObjectName("musicGroupBox") self.gridLayout_28 = QtWidgets.QGridLayout(self.musicGroupBox) self.gridLayout_28.setObjectName("gridLayout_28") self.gridLayout_29 = QtWidgets.QGridLayout() self.gridLayout_29.setObjectName("gridLayout_29") self.animationsCheckBox = QtWidgets.QCheckBox(self.musicGroupBox) font = QtGui.QFont() font.setFamily("Courier") font.setBold(False) font.setWeight(50) self.animationsCheckBox.setFont(font) self.animationsCheckBox.setObjectName("animationsCheckBox") self.gridLayout_29.addWidget(self.animationsCheckBox, 3, 0, 1, 1) self.playTimeSpinBox = QtWidgets.QSpinBox(self.musicGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.playTimeSpinBox.sizePolicy().hasHeightForWidth()) self.playTimeSpinBox.setSizePolicy(sizePolicy) self.playTimeSpinBox.setMinimum(-1) self.playTimeSpinBox.setMaximum(500) self.playTimeSpinBox.setSingleStep(5) self.playTimeSpinBox.setProperty("value", 30) self.playTimeSpinBox.setObjectName("playTimeSpinBox") self.gridLayout_29.addWidget(self.playTimeSpinBox, 2, 2, 1, 1) self.label_27 = QtWidgets.QLabel(self.musicGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_27.sizePolicy().hasHeightForWidth()) self.label_27.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Courier") font.setBold(False) font.setWeight(50) self.label_27.setFont(font) self.label_27.setObjectName("label_27") self.gridLayout_29.addWidget(self.label_27, 0, 0, 1, 1) self.label_28 = QtWidgets.QLabel(self.musicGroupBox) font = QtGui.QFont() font.setFamily("Courier") font.setBold(False) font.setWeight(50) self.label_28.setFont(font) self.label_28.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_28.setObjectName("label_28") self.gridLayout_29.addWidget(self.label_28, 2, 0, 1, 2) self.label_29 = QtWidgets.QLabel(self.musicGroupBox) font = QtGui.QFont() font.setFamily("Courier") font.setBold(False) font.setWeight(50) self.label_29.setFont(font) self.label_29.setObjectName("label_29") self.gridLayout_29.addWidget(self.label_29, 1, 0, 1, 1) self.label_30 = QtWidgets.QLabel(self.musicGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_30.sizePolicy().hasHeightForWidth()) self.label_30.setSizePolicy(sizePolicy) self.label_30.setObjectName("label_30") self.gridLayout_29.addWidget(self.label_30, 2, 3, 1, 1) self.playlistComboBox = QtWidgets.QComboBox(self.musicGroupBox) self.playlistComboBox.setObjectName("playlistComboBox") self.gridLayout_29.addWidget(self.playlistComboBox, 0, 1, 1, 3) self.tracksComboBox = QtWidgets.QComboBox(self.musicGroupBox) self.tracksComboBox.setObjectName("tracksComboBox") self.gridLayout_29.addWidget(self.tracksComboBox, 1, 1, 1, 3) self.animationsComboBox = QtWidgets.QComboBox(self.musicGroupBox) self.animationsComboBox.setEnabled(False) self.animationsComboBox.setObjectName("animationsComboBox") self.gridLayout_29.addWidget(self.animationsComboBox, 3, 1, 1, 3) self.gridLayout_28.addLayout(self.gridLayout_29, 0, 0, 1, 1) self.gridLayout_30.addWidget(self.musicGroupBox, 2, 0, 1, 3) spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_30.addItem(spacerItem2, 4, 2, 1, 1) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_30.addItem(spacerItem3, 3, 0, 1, 1) self.gridLayout_31.addLayout(self.gridLayout_30, 0, 0, 1, 1) self.tabWidget.addTab(self.actionTab, "") self.topicTab = QtWidgets.QWidget() self.topicTab.setObjectName("topicTab") self.gridLayout_10 = QtWidgets.QGridLayout(self.topicTab) self.gridLayout_10.setObjectName("gridLayout_10") self.groupBox_2 = QtWidgets.QGroupBox(self.topicTab) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.groupBox_2.setFont(font) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_4.setObjectName("gridLayout_4") self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.line = QtWidgets.QFrame(self.groupBox_2) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_3.addWidget(self.line, 7, 0, 1, 2) self.label_5 = QtWidgets.QLabel(self.groupBox_2) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_5.setFont(font) self.label_5.setObjectName("label_5") self.gridLayout_3.addWidget(self.label_5, 4, 0, 1, 1) self.answer1TextEdit = QtWidgets.QTextEdit(self.groupBox_2) self.answer1TextEdit.setMinimumSize(QtCore.QSize(0, 40)) self.answer1TextEdit.setMaximumSize(QtCore.QSize(16777215, 50)) self.answer1TextEdit.setObjectName("answer1TextEdit") self.gridLayout_3.addWidget(self.answer1TextEdit, 1, 0, 1, 1) self.line_5 = QtWidgets.QFrame(self.groupBox_2) self.line_5.setFrameShape(QtWidgets.QFrame.HLine) self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_5.setObjectName("line_5") self.gridLayout_3.addWidget(self.line_5, 3, 0, 1, 2) spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem4, 9, 0, 1, 1) self.gridLayout_14 = QtWidgets.QGridLayout() self.gridLayout_14.setObjectName("gridLayout_14") self.label_18 = QtWidgets.QLabel(self.groupBox_2) self.label_18.setMinimumSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setItalic(True) font.setWeight(50) self.label_18.setFont(font) self.label_18.setStyleSheet("color: rgb(51, 51, 51);") self.label_18.setScaledContents(True) self.label_18.setAlignment(QtCore.Qt.AlignCenter) self.label_18.setWordWrap(True) self.label_18.setObjectName("label_18") self.gridLayout_14.addWidget(self.label_18, 0, 0, 1, 1) self.gridLayout_3.addLayout(self.gridLayout_14, 8, 0, 1, 2) self.label_3 = QtWidgets.QLabel(self.groupBox_2) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_3.setFont(font) self.label_3.setObjectName("label_3") self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1) self.answer2TextEdit = QtWidgets.QTextEdit(self.groupBox_2) self.answer2TextEdit.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.answer2TextEdit.sizePolicy().hasHeightForWidth()) self.answer2TextEdit.setSizePolicy(sizePolicy) self.answer2TextEdit.setMinimumSize(QtCore.QSize(0, 40)) self.answer2TextEdit.setMaximumSize(QtCore.QSize(16777215, 50)) self.answer2TextEdit.setObjectName("answer2TextEdit") self.gridLayout_3.addWidget(self.answer2TextEdit, 5, 0, 1, 1) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_13 = QtWidgets.QLabel(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth()) self.label_13.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_13.setFont(font) self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 0, 0, 1, 1) self.answer1GoToComboBox = QtWidgets.QComboBox(self.groupBox_2) self.answer1GoToComboBox.setObjectName("answer1GoToComboBox") self.gridLayout.addWidget(self.answer1GoToComboBox, 0, 1, 1, 1) self.gridLayout_3.addLayout(self.gridLayout, 2, 0, 1, 2) self.gridLayout_6 = QtWidgets.QGridLayout() self.gridLayout_6.setObjectName("gridLayout_6") self.answer2GoToComboBox = QtWidgets.QComboBox(self.groupBox_2) self.answer2GoToComboBox.setObjectName("answer2GoToComboBox") self.gridLayout_6.addWidget(self.answer2GoToComboBox, 0, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_15.sizePolicy().hasHeightForWidth()) self.label_15.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_15.setFont(font) self.label_15.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_15.setObjectName("label_15") self.gridLayout_6.addWidget(self.label_15, 0, 0, 1, 1) self.gridLayout_3.addLayout(self.gridLayout_6, 6, 0, 1, 2) self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1) self.gridLayout_10.addWidget(self.groupBox_2, 1, 0, 1, 1) self.line_6 = QtWidgets.QFrame(self.topicTab) self.line_6.setFrameShape(QtWidgets.QFrame.HLine) self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_6.setObjectName("line_6") self.gridLayout_10.addWidget(self.line_6, 0, 0, 1, 1) self.tabWidget.addTab(self.topicTab, "") self.tabletTab = QtWidgets.QWidget() self.tabletTab.setObjectName("tabletTab") self.gridLayout_9 = QtWidgets.QGridLayout(self.tabletTab) self.gridLayout_9.setObjectName("gridLayout_9") self.groupBox_3 = QtWidgets.QGroupBox(self.tabletTab) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.groupBox_3.setFont(font) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_7.setObjectName("gridLayout_7") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.label_9 = QtWidgets.QLabel(self.groupBox_3) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_9.setFont(font) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_9) self.tabletPageNameComboBox = QtWidgets.QComboBox(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tabletPageNameComboBox.sizePolicy().hasHeightForWidth()) self.tabletPageNameComboBox.setSizePolicy(sizePolicy) self.tabletPageNameComboBox.setObjectName("tabletPageNameComboBox") self.tabletPageNameComboBox.addItem("") self.tabletPageNameComboBox.addItem("") self.tabletPageNameComboBox.addItem("") self.tabletPageNameComboBox.addItem("") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.tabletPageNameComboBox) self.label_8 = QtWidgets.QLabel(self.groupBox_3) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_8.setFont(font) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_8) self.tabletImageComboBox = QtWidgets.QComboBox(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tabletImageComboBox.sizePolicy().hasHeightForWidth()) self.tabletImageComboBox.setSizePolicy(sizePolicy) self.tabletImageComboBox.setObjectName("tabletImageComboBox") self.tabletImageComboBox.addItem("") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.tabletImageComboBox) self.label_7 = QtWidgets.QLabel(self.groupBox_3) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_7.setFont(font) self.label_7.setObjectName("label_7") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_7) self.tabletHeadingTextEdit = QtWidgets.QTextEdit(self.groupBox_3) self.tabletHeadingTextEdit.setMinimumSize(QtCore.QSize(0, 50)) self.tabletHeadingTextEdit.setMaximumSize(QtCore.QSize(16777215, 50)) self.tabletHeadingTextEdit.setObjectName("tabletHeadingTextEdit") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.tabletHeadingTextEdit) self.label_10 = QtWidgets.QLabel(self.groupBox_3) font = QtGui.QFont() font.setFamily("Courier New") font.setBold(False) font.setWeight(50) self.label_10.setFont(font) self.label_10.setObjectName("label_10") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_10) self.tabletInfoTextEdit = QtWidgets.QTextEdit(self.groupBox_3) self.tabletInfoTextEdit.setMinimumSize(QtCore.QSize(0, 50)) self.tabletInfoTextEdit.setMaximumSize(QtCore.QSize(16777215, 50)) self.tabletInfoTextEdit.setObjectName("tabletInfoTextEdit") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.tabletInfoTextEdit) spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.formLayout.setItem(4, QtWidgets.QFormLayout.FieldRole, spacerItem5) self.gridLayout_7.addLayout(self.formLayout, 0, 0, 1, 1) self.line_2 = QtWidgets.QFrame(self.groupBox_3) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.gridLayout_7.addWidget(self.line_2, 1, 0, 1, 1) self.gridLayout_9.addWidget(self.groupBox_3, 0, 0, 1, 1) self.tabWidget.addTab(self.tabletTab, "") self.gridLayout_11.addWidget(self.tabWidget, 1, 0, 1, 1) self.retranslateUi(EditBlockDialog) self.tabWidget.setCurrentIndex(0) self.buttonBox.rejected.connect(EditBlockDialog.reject) self.buttonBox.accepted.connect(EditBlockDialog.accept) QtCore.QMetaObject.connectSlotsByName(EditBlockDialog)