src/eric7/Plugins/VcsPlugins/vcsGit/GitBisectStartDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
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 reference to the parent widget (QWidget) 25 @param parent reference to the 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.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) 31 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok)
43 @pyqtSlot(str) 44 @pyqtSlot(str)
44 def on_badEdit_textChanged(self, txt): 45 def on_badEdit_textChanged(self, txt):
45 """ 46 """
46 Private slot to handle a change of the bad commit. 47 Private slot to handle a change of the bad commit.
47 48
48 @param txt bad commit entered (string) 49 @param txt bad commit entered
50 @type str
49 """ 51 """
50 self.__updateOK() 52 self.__updateOK()
51 53
52 def getData(self): 54 def getData(self):
53 """ 55 """
54 Public method to get the entered data. 56 Public method to get the entered data.
55 57
56 @return tuple containing a bad commit (string), a list of good 58 @return tuple containing a bad commit, a list of good commits and
57 commits (list of strings) and a flag indicating to not 59 a flag indicating to not checkout the working tree
58 checkout the working tree (boolean) 60 @rtype tuple of (str, list of str, bool)
59 """ 61 """
60 return ( 62 return (
61 self.badEdit.text().strip(), 63 self.badEdit.text().strip(),
62 self.goodEdit.text().strip().split(), 64 self.goodEdit.text().strip().split(),
63 self.noCheckoutCheckBox.isChecked(), 65 self.noCheckoutCheckBox.isChecked(),

eric ide

mercurial