src/eric7/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelvesSelectionDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelvesSelectionDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelvesSelectionDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,39 +17,40 @@
     """
     Class implementing a dialog to select multiple shelve names.
     """
+
     def __init__(self, message, shelveNames, parent=None):
         """
         Constructor
-        
+
         @param message message to be shown (string)
         @param shelveNames list of shelve names (list of string)
         @param parent reference to the parent widget (QWidget)
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.message.setText(message)
         self.shelvesList.addItems(shelveNames)
-        
-        self.buttonBox.button(
-            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
-    
+
+        self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False)
+
     @pyqtSlot()
     def on_shelvesList_itemSelectionChanged(self):
         """
         Private slot to enabled the OK button if items have been selected.
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
-            len(self.shelvesList.selectedItems()) > 0)
-    
+            len(self.shelvesList.selectedItems()) > 0
+        )
+
     def getSelectedShelves(self):
         """
         Public method to retrieve the selected shelve names.
-        
+
         @return selected shelve names (list of string)
         """
         names = []
         for itm in self.shelvesList.selectedItems():
             names.append(itm.text())
-        
+
         return names

eric ide

mercurial