src/eric7/HelpViewer/HelpBookmarkPropertiesDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
--- a/src/eric7/HelpViewer/HelpBookmarkPropertiesDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/HelpViewer/HelpBookmarkPropertiesDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,10 +17,11 @@
     """
     Class implementing a dialog to edit the bookmark properties.
     """
+
     def __init__(self, title="", url="", parent=None):
         """
         Constructor
-        
+
         @param title title for the bookmark (defaults to "")
         @type str (optional)
         @param url URL for the bookmark (defaults to "")
@@ -30,30 +31,29 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.titleEdit.textChanged.connect(self.__updateOkButton)
         self.urlEdit.textChanged.connect(self.__updateOkButton)
-        
+
         self.titleEdit.setText(title)
         self.urlEdit.setText(url)
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     @pyqtSlot()
     def __updateOkButton(self):
         """
         Private method to set the enabled state of the OK button.
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
-            bool(self.titleEdit.text().strip()) and
-            bool(self.urlEdit.text().strip())
+            bool(self.titleEdit.text().strip()) and bool(self.urlEdit.text().strip())
         )
-    
+
     def getData(self):
         """
         Public method to retrieve the entered data.
-        
+
         @return tuple containing the title and URL for the bookmark
         @rtype tuple of (str, str)
         """

eric ide

mercurial