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/DjangoMigrationsListDialog.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_DjangoMigrationsListDialog(object): def setupUi(self, DjangoMigrationsListDialog): DjangoMigrationsListDialog.setObjectName("DjangoMigrationsListDialog") DjangoMigrationsListDialog.resize(550, 500) DjangoMigrationsListDialog.setSizeGripEnabled(True) self.verticalLayout = QtWidgets.QVBoxLayout(DjangoMigrationsListDialog) self.verticalLayout.setObjectName("verticalLayout") self.migrationsList = QtWidgets.QTreeWidget(DjangoMigrationsListDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(3) sizePolicy.setHeightForWidth(self.migrationsList.sizePolicy().hasHeightForWidth()) self.migrationsList.setSizePolicy(sizePolicy) self.migrationsList.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.CustomContextMenu) self.migrationsList.setAlternatingRowColors(True) self.migrationsList.setObjectName("migrationsList") self.migrationsList.headerItem().setText(0, "1") self.migrationsList.header().setStretchLastSection(False) self.verticalLayout.addWidget(self.migrationsList) self.errorGroup = QtWidgets.QGroupBox(DjangoMigrationsListDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(self.errorGroup.sizePolicy().hasHeightForWidth()) self.errorGroup.setSizePolicy(sizePolicy) self.errorGroup.setObjectName("errorGroup") self.vboxlayout = QtWidgets.QVBoxLayout(self.errorGroup) self.vboxlayout.setContentsMargins(6, 6, 6, 6) self.vboxlayout.setSpacing(6) self.vboxlayout.setObjectName("vboxlayout") self.errors = QtWidgets.QTextEdit(self.errorGroup) self.errors.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) self.errors.setReadOnly(True) self.errors.setAcceptRichText(False) self.errors.setObjectName("errors") self.vboxlayout.addWidget(self.errors) self.verticalLayout.addWidget(self.errorGroup) self.buttonBox = QtWidgets.QDialogButtonBox(DjangoMigrationsListDialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Close) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(DjangoMigrationsListDialog) self.buttonBox.accepted.connect(DjangoMigrationsListDialog.accept) # type: ignore self.buttonBox.rejected.connect(DjangoMigrationsListDialog.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(DjangoMigrationsListDialog) def retranslateUi(self, DjangoMigrationsListDialog): _translate = QtCore.QCoreApplication.translate self.errorGroup.setTitle(_translate("DjangoMigrationsListDialog", "Errors")) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) DjangoMigrationsListDialog = QtWidgets.QDialog() ui = Ui_DjangoMigrationsListDialog() ui.setupUi(DjangoMigrationsListDialog) DjangoMigrationsListDialog.show() sys.exit(app.exec())