src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardRepeatDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
--- a/src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardRepeatDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardRepeatDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -11,54 +11,56 @@
 from PyQt6.QtWidgets import QDialog
 
 from .Ui_QRegularExpressionWizardRepeatDialog import (
-    Ui_QRegularExpressionWizardRepeatDialog
+    Ui_QRegularExpressionWizardRepeatDialog,
 )
 
 
 class QRegularExpressionWizardRepeatDialog(
-        QDialog, Ui_QRegularExpressionWizardRepeatDialog):
+    QDialog, Ui_QRegularExpressionWizardRepeatDialog
+):
     """
     Class implementing a dialog for entering repeat counts.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget (QWidget)
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.unlimitedButton.setChecked(True)
         self.greedyButton.setChecked(True)
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     @pyqtSlot(int)
     def on_lowerSpin_valueChanged(self, value):
         """
         Private slot to handle the lowerSpin valueChanged signal.
-        
+
         @param value value of the spinbox (integer)
         """
         if self.upperSpin.value() < value:
             self.upperSpin.setValue(value)
-    
+
     @pyqtSlot(int)
     def on_upperSpin_valueChanged(self, value):
         """
         Private slot to handle the upperSpin valueChanged signal.
-        
+
         @param value value of the spinbox (integer)
         """
         if self.lowerSpin.value() > value:
             self.lowerSpin.setValue(value)
-    
+
     def getRepeat(self):
         """
         Public method to retrieve the dialog's result.
-        
+
         @return ready formatted repeat string (string)
         """
         if self.possessiveButton.isChecked():
@@ -67,7 +69,7 @@
             greedy = "?"
         else:
             greedy = ""
-            
+
         if self.unlimitedButton.isChecked():
             return "*" + greedy
         elif self.minButton.isChecked():
@@ -89,5 +91,5 @@
             repsMin = self.lowerSpin.value()
             repsMax = self.upperSpin.value()
             return "{{{0:d},{1:d}}}{2}".format(repsMin, repsMax, greedy)
-        
+
         return ""

eric ide

mercurial