src/eric7/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardRepeatDialog.py

branch
eric7
changeset 10437
2f70ca07f0af
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
20 20
21 def __init__(self, parent=None): 21 def __init__(self, parent=None):
22 """ 22 """
23 Constructor 23 Constructor
24 24
25 @param parent parent widget (QWidget) 25 @param parent parent widget
26 @type QWidget
26 """ 27 """
27 super().__init__(parent) 28 super().__init__(parent)
28 self.setupUi(self) 29 self.setupUi(self)
29 30
30 self.unlimitedButton.setChecked(True) 31 self.unlimitedButton.setChecked(True)
35 @pyqtSlot(int) 36 @pyqtSlot(int)
36 def on_lowerSpin_valueChanged(self, value): 37 def on_lowerSpin_valueChanged(self, value):
37 """ 38 """
38 Private slot to handle the lowerSpin valueChanged signal. 39 Private slot to handle the lowerSpin valueChanged signal.
39 40
40 @param value value of the spinbox (integer) 41 @param value value of the spinbox
42 @type int
41 """ 43 """
42 if self.upperSpin.value() < value: 44 if self.upperSpin.value() < value:
43 self.upperSpin.setValue(value) 45 self.upperSpin.setValue(value)
44 46
45 @pyqtSlot(int) 47 @pyqtSlot(int)
46 def on_upperSpin_valueChanged(self, value): 48 def on_upperSpin_valueChanged(self, value):
47 """ 49 """
48 Private slot to handle the upperSpin valueChanged signal. 50 Private slot to handle the upperSpin valueChanged signal.
49 51
50 @param value value of the spinbox (integer) 52 @param value value of the spinbox
53 @type int
51 """ 54 """
52 if self.lowerSpin.value() > value: 55 if self.lowerSpin.value() > value:
53 self.lowerSpin.setValue(value) 56 self.lowerSpin.setValue(value)
54 57
55 def getRepeat(self): 58 def getRepeat(self):
56 """ 59 """
57 Public method to retrieve the dialog's result. 60 Public method to retrieve the dialog's result.
58 61
59 @return ready formatted repeat string (string) 62 @return ready formatted repeat string
63 @rtype str
60 """ 64 """
61 minimal = "?" if self.minimalCheckBox.isChecked() else "" 65 minimal = "?" if self.minimalCheckBox.isChecked() else ""
62 66
63 if self.unlimitedButton.isChecked(): 67 if self.unlimitedButton.isChecked():
64 return "*" + minimal 68 return "*" + minimal

eric ide

mercurial