SelectionEncloser/ConfigurationPage/SelectionEncloserEditDialog.py

branch
eric7
changeset 55
ccddc623f3c1
parent 52
d2119f1dd5b3
child 59
d29b2151850e
--- a/SelectionEncloser/ConfigurationPage/SelectionEncloserEditDialog.py	Thu Dec 30 12:58:58 2021 +0100
+++ b/SelectionEncloser/ConfigurationPage/SelectionEncloserEditDialog.py	Wed Sep 21 10:48:59 2022 +0200
@@ -17,10 +17,11 @@
     """
     Class implementing a dialog to edit an enclosing menu entry.
     """
+
     def __init__(self, title="", string="", parent=None):
         """
         Constructor
-        
+
         @param title menu entry title
         @type str
         @param string enclosing string or string format expression
@@ -30,46 +31,47 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.titleEdit.setText(title)
         self.stringEdit.setText(string)
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.size().width(), msh.width()), msh.height())
-        
+
         self.__updateOkButton()
-    
+
     def __updateOkButton(self):
         """
         Private slot to set the status of the OK button.
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
-            bool(self.titleEdit.text()) and bool(self.stringEdit.text()))
-    
+            bool(self.titleEdit.text()) and bool(self.stringEdit.text())
+        )
+
     @pyqtSlot(str)
     def on_titleEdit_textChanged(self, txt):
         """
         Private slot to react on changes of the title.
-        
+
         @param txt title text
         @type str
         """
         self.__updateOkButton()
-    
+
     @pyqtSlot(str)
     def on_stringEdit_textChanged(self, txt):
         """
         Private slot to react on changes of the string.
-        
+
         @param txt enclosing string
         @type str
         """
         self.__updateOkButton()
-    
+
     def getData(self):
         """
         Public method to get the dialog data.
-        
+
         @return tuple with menu entry title and enclosing string or string
             format expression
         @rtype tuple of (str, str)

eric ide

mercurial