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

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
21 def __init__(self, branches, parent=None): 21 def __init__(self, branches, parent=None):
22 """ 22 """
23 Constructor 23 Constructor
24 24
25 @param branches branch names to populate the branch list with 25 @param branches branch names to populate the branch list with
26 (list of string) 26 @type list of str
27 @param parent reference to the parent widget (QWidget) 27 @param parent reference to the parent widget
28 @type QWidget
28 """ 29 """
29 super().__init__(parent) 30 super().__init__(parent)
30 self.setupUi(self) 31 self.setupUi(self)
31 32
32 self.branchComboBox.addItems(sorted(branches)) 33 self.branchComboBox.addItems(sorted(branches))
40 @pyqtSlot(str) 41 @pyqtSlot(str)
41 def on_branchComboBox_editTextChanged(self, txt): 42 def on_branchComboBox_editTextChanged(self, txt):
42 """ 43 """
43 Private slot handling a change of the branch name. 44 Private slot handling a change of the branch name.
44 45
45 @param txt contents of the branch combo box (string) 46 @param txt contents of the branch combo box
47 @type str
46 """ 48 """
47 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(txt)) 49 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(txt))
48 50
49 def getData(self): 51 def getData(self):
50 """ 52 """

eric ide

mercurial