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

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgPhaseDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgPhaseDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -18,57 +18,58 @@
     Class dimplementing a dialog to enter data for the Mercurial Phase
     operation.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget (QWidget)
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.phaseCombo.addItem("", "")
         self.phaseCombo.addItem(self.tr("Public"), "p")
         self.phaseCombo.addItem(self.tr("Draft"), "d")
         self.phaseCombo.addItem(self.tr("Secret"), "s")
-        
-        self.buttonBox.button(
-            QDialogButtonBox.StandardButton.Ok).setEnabled(False)
-    
+
+        self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False)
+
     def __updateOk(self):
         """
         Private slot to update the state of the OK button.
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
-            self.revisionsEdit.toPlainText().strip() != "" and
-            self.phaseCombo.currentText().strip() != "")
-    
+            self.revisionsEdit.toPlainText().strip() != ""
+            and self.phaseCombo.currentText().strip() != ""
+        )
+
     @pyqtSlot()
     def on_revisionsEdit_textChanged(self):
         """
         Private slot to react upon changes of revisions.
         """
         self.__updateOk()
-    
+
     @pyqtSlot(int)
     def on_phaseCombo_activated(self, index):
         """
         Private slot to react upon changes of the phase.
-        
+
         @param index index of the selected entry
         @type int
         """
         self.__updateOk()
-    
+
     def getData(self):
         """
         Public method to retrieve the entered data.
-        
+
         @return tuple with list of revisions, phase and a flag indicating
             a forced operation (list of strings, string, boolean)
         """
         return (
             self.revisionsEdit.toPlainText().strip().splitlines(),
             self.phaseCombo.itemData(self.phaseCombo.currentIndex()),
-            self.forceCheckBox.isChecked()
+            self.forceCheckBox.isChecked(),
         )

eric ide

mercurial