--- a/RefactoringRope/Ui_GetterSetterDialog.py Sat Oct 26 15:50:43 2024 +0200 +++ b/RefactoringRope/Ui_GetterSetterDialog.py Sat Oct 26 15:54:44 2024 +0200 @@ -1,6 +1,6 @@ -# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_plugins/Plugin_Refactoring_Rope/RefactoringRope/GetterSetterDialog.ui' +# Form implementation generated from reading ui file 'RefactoringRope/GetterSetterDialog.ui' # -# Created by: PyQt6 UI code generator 6.3.1 +# Created by: PyQt6 UI code generator 6.7.1 # # 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. @@ -16,24 +16,24 @@ self.gridlayout = QtWidgets.QGridLayout(GetterSetterDialog) self.gridlayout.setContentsMargins(6, 6, 6, 6) self.gridlayout.setObjectName("gridlayout") - self.typeCheckBox = QtWidgets.QCheckBox(GetterSetterDialog) + self.typeCheckBox = QtWidgets.QCheckBox(parent=GetterSetterDialog) self.typeCheckBox.setObjectName("typeCheckBox") self.gridlayout.addWidget(self.typeCheckBox, 0, 0, 1, 2) - self.label = QtWidgets.QLabel(GetterSetterDialog) + self.label = QtWidgets.QLabel(parent=GetterSetterDialog) self.label.setObjectName("label") self.gridlayout.addWidget(self.label, 1, 0, 1, 1) - self.getterEdit = QtWidgets.QLineEdit(GetterSetterDialog) + self.getterEdit = QtWidgets.QLineEdit(parent=GetterSetterDialog) self.getterEdit.setClearButtonEnabled(True) self.getterEdit.setObjectName("getterEdit") self.gridlayout.addWidget(self.getterEdit, 1, 1, 1, 1) - self.label_2 = QtWidgets.QLabel(GetterSetterDialog) + self.label_2 = QtWidgets.QLabel(parent=GetterSetterDialog) self.label_2.setObjectName("label_2") self.gridlayout.addWidget(self.label_2, 2, 0, 1, 1) - self.setterEdit = QtWidgets.QLineEdit(GetterSetterDialog) + self.setterEdit = QtWidgets.QLineEdit(parent=GetterSetterDialog) self.setterEdit.setClearButtonEnabled(True) self.setterEdit.setObjectName("setterEdit") self.gridlayout.addWidget(self.setterEdit, 2, 1, 1, 1) - self.buttonBox = QtWidgets.QDialogButtonBox(GetterSetterDialog) + self.buttonBox = QtWidgets.QDialogButtonBox(parent=GetterSetterDialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) self.buttonBox.setObjectName("buttonBox") @@ -56,13 +56,3 @@ self.getterEdit.setToolTip(_translate("GetterSetterDialog", "Enter the name of the getter method")) self.label_2.setText(_translate("GetterSetterDialog", "Setter:")) self.setterEdit.setToolTip(_translate("GetterSetterDialog", "Enter the name of the setter method")) - - -if __name__ == "__main__": - import sys - app = QtWidgets.QApplication(sys.argv) - GetterSetterDialog = QtWidgets.QDialog() - ui = Ui_GetterSetterDialog() - ui.setupUi(GetterSetterDialog) - GetterSetterDialog.show() - sys.exit(app.exec())