eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
28 @param parent reference to the parent widget (QWidget) 28 @param parent reference to the parent widget (QWidget)
29 """ 29 """
30 super(HgGpgSignDialog, self).__init__(parent) 30 super(HgGpgSignDialog, self).__init__(parent)
31 self.setupUi(self) 31 self.setupUi(self)
32 32
33 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 33 self.buttonBox.button(
34 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
34 35
35 self.tagCombo.addItems(sorted(tagsList)) 36 self.tagCombo.addItems(sorted(tagsList))
36 self.branchCombo.addItems(["default"] + sorted(branchesList)) 37 self.branchCombo.addItems(["default"] + sorted(branchesList))
37 if bookmarksList is not None: 38 if bookmarksList is not None:
38 self.bookmarkCombo.addItems(sorted(bookmarksList)) 39 self.bookmarkCombo.addItems(sorted(bookmarksList))
52 elif self.branchButton.isChecked(): 53 elif self.branchButton.isChecked():
53 enabled = enabled and self.branchCombo.currentText() != "" 54 enabled = enabled and self.branchCombo.currentText() != ""
54 elif self.bookmarkButton.isChecked(): 55 elif self.bookmarkButton.isChecked():
55 enabled = enabled and self.bookmarkCombo.currentText() != "" 56 enabled = enabled and self.bookmarkCombo.currentText() != ""
56 57
57 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) 58 self.buttonBox.button(
59 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled)
58 60
59 @pyqtSlot(bool) 61 @pyqtSlot(bool)
60 def on_idButton_toggled(self, checked): 62 def on_idButton_toggled(self, checked):
61 """ 63 """
62 Private slot to handle changes of the ID select button. 64 Private slot to handle changes of the ID select button.

eric ide

mercurial