RefactoringRope/AddParameterDialog.py

branch
eric7
changeset 389
4f53795beff0
parent 374
958f34e97952
child 411
8cccb49bba7b
--- a/RefactoringRope/AddParameterDialog.py	Sat Jun 25 18:06:56 2022 +0200
+++ b/RefactoringRope/AddParameterDialog.py	Wed Sep 21 15:30:34 2022 +0200
@@ -17,40 +17,38 @@
     """
     Class implementing the Add New Parameter dialog.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget
         @type QWidget
         """
         QDialog.__init__(self, parent)
         self.setupUi(self)
-        
-        self.__okButton = self.buttonBox.button(
-            QDialogButtonBox.StandardButton.Ok)
+
+        self.__okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok)
         self.__okButton.setEnabled(False)
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     @pyqtSlot(str)
     def on_nameEdit_textChanged(self, txt):
         """
         Private slot called, when the name entry is changed.
-        
+
         @param txt text of the entry
         @type str
         """
         self.__okButton.setEnabled(txt != "")
-    
+
     def getData(self):
         """
         Public method to extract the data entered into the dialog.
-        
+
         @return tuple containing name, default and value
         @rtype tuple of (str, str, str)
         """
-        return (self.nameEdit.text(),
-                self.defaultEdit.text(),
-                self.valueEdit.text())
+        return (self.nameEdit.text(), self.defaultEdit.text(), self.valueEdit.text())

eric ide

mercurial