Mon, 28 Oct 2024 16:24:54 +0100
- changed to the new style header
- ensured proper parent relationship of modal dialogs
- included compiled form files
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Project_Django/ProjectDjango/DjangoCheckOptionsDialog.ui' # # Created by: PyQt6 UI code generator 6.4.0 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui, QtWidgets class Ui_DjangoCheckOptionsDialog(object): def setupUi(self, DjangoCheckOptionsDialog): DjangoCheckOptionsDialog.setObjectName("DjangoCheckOptionsDialog") DjangoCheckOptionsDialog.resize(500, 450) DjangoCheckOptionsDialog.setSizeGripEnabled(True) self.verticalLayout = QtWidgets.QVBoxLayout(DjangoCheckOptionsDialog) self.verticalLayout.setObjectName("verticalLayout") self.deployCheckBox = QtWidgets.QCheckBox(DjangoCheckOptionsDialog) self.deployCheckBox.setObjectName("deployCheckBox") self.verticalLayout.addWidget(self.deployCheckBox) self.label = QtWidgets.QLabel(DjangoCheckOptionsDialog) self.label.setWordWrap(True) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.tagsList = QtWidgets.QListWidget(DjangoCheckOptionsDialog) self.tagsList.setAlternatingRowColors(True) self.tagsList.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.tagsList.setObjectName("tagsList") self.verticalLayout.addWidget(self.tagsList) self.label_2 = QtWidgets.QLabel(DjangoCheckOptionsDialog) self.label_2.setWordWrap(True) self.label_2.setObjectName("label_2") self.verticalLayout.addWidget(self.label_2) self.appsComboBox = QtWidgets.QComboBox(DjangoCheckOptionsDialog) self.appsComboBox.setEditable(True) self.appsComboBox.setObjectName("appsComboBox") self.verticalLayout.addWidget(self.appsComboBox) self.settingsFileGroup = QtWidgets.QGroupBox(DjangoCheckOptionsDialog) self.settingsFileGroup.setObjectName("settingsFileGroup") self.horizontalLayout = QtWidgets.QHBoxLayout(self.settingsFileGroup) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.settingsFileEdit = QtWidgets.QLineEdit(self.settingsFileGroup) self.settingsFileEdit.setClearButtonEnabled(True) self.settingsFileEdit.setObjectName("settingsFileEdit") self.horizontalLayout.addWidget(self.settingsFileEdit) self.settingsFileButton = QtWidgets.QToolButton(self.settingsFileGroup) self.settingsFileButton.setObjectName("settingsFileButton") self.horizontalLayout.addWidget(self.settingsFileButton) self.verticalLayout.addWidget(self.settingsFileGroup) self.buttonBox = QtWidgets.QDialogButtonBox(DjangoCheckOptionsDialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(DjangoCheckOptionsDialog) self.buttonBox.accepted.connect(DjangoCheckOptionsDialog.accept) # type: ignore self.buttonBox.rejected.connect(DjangoCheckOptionsDialog.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(DjangoCheckOptionsDialog) def retranslateUi(self, DjangoCheckOptionsDialog): _translate = QtCore.QCoreApplication.translate DjangoCheckOptionsDialog.setWindowTitle(_translate("DjangoCheckOptionsDialog", "Check Options")) self.deployCheckBox.setToolTip(_translate("DjangoCheckOptionsDialog", "Select to enable checks for deployment mode")) self.deployCheckBox.setText(_translate("DjangoCheckOptionsDialog", "Deployment Mode")) self.label.setText(_translate("DjangoCheckOptionsDialog", "Select type of checks (leave unselected for all checks):")) self.tagsList.setSortingEnabled(True) self.label_2.setText(_translate("DjangoCheckOptionsDialog", "Enter the list of applications separated by spaces (leave empty for all apps):")) self.settingsFileGroup.setTitle(_translate("DjangoCheckOptionsDialog", "Settings module for deployment mode")) self.settingsFileEdit.setToolTip(_translate("DjangoCheckOptionsDialog", "Enter the module name of the deployment settings")) self.settingsFileButton.setToolTip(_translate("DjangoCheckOptionsDialog", "Press to select the settings module file via a file selection dialog")) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) DjangoCheckOptionsDialog = QtWidgets.QDialog() ui = Ui_DjangoCheckOptionsDialog() ui.setupUi(DjangoCheckOptionsDialog) DjangoCheckOptionsDialog.show() sys.exit(app.exec())