src/eric7/Plugins/VcsPlugins/vcsMercurial/HgBookmarkRenameDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Plugins/VcsPlugins/vcsMercurial/HgBookmarkRenameDialog.py
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgBookmarkRenameDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgBookmarkRenameDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,55 +17,54 @@
     """
     Class implementing a dialog to get the data to rename a bookmark.
     """
+
     def __init__(self, bookmarksList, parent=None):
         """
         Constructor
-        
+
         @param bookmarksList list of bookmarks (list of strings)
         @param parent reference to the parent widget (QWidget)
         """
         super().__init__(parent)
         self.setupUi(self)
-        
-        self.buttonBox.button(
-            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
-       
+
+        self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False)
+
         self.bookmarkCombo.addItems(sorted(bookmarksList))
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     def __updateUI(self):
         """
         Private slot to update the UI.
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
-            self.nameEdit.text() != "" and
-            self.bookmarkCombo.currentText() != ""
+            self.nameEdit.text() != "" and self.bookmarkCombo.currentText() != ""
         )
-    
+
     @pyqtSlot(str)
     def on_nameEdit_textChanged(self, txt):
         """
         Private slot to handle changes of the bookmark name.
-        
+
         @param txt text of the edit (string)
         """
         self.__updateUI()
-    
+
     @pyqtSlot(str)
     def on_bookmarkCombo_editTextChanged(self, txt):
         """
         Private slot to handle changes of the selected bookmark.
-        
+
         @param txt name of the selected bookmark (string)
         """
         self.__updateUI()
-    
+
     def getData(self):
         """
         Public method to retrieve the entered data.
-        
+
         @return tuple naming the old and new bookmark names
             (string, string)
         """

eric ide

mercurial