eric6/Plugins/VcsPlugins/vcsMercurial/HgUserConfigHostMinimumProtocolDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
59 """ 59 """
60 enabled = ( 60 enabled = (
61 bool(self.hostEdit.text()) and 61 bool(self.hostEdit.text()) and
62 self.minimumProtocolComboBox.currentIndex() > 0 62 self.minimumProtocolComboBox.currentIndex() > 0
63 ) 63 )
64 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) 64 self.buttonBox.button(
65 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled)
65 66
66 @pyqtSlot(str) 67 @pyqtSlot(str)
67 def on_hostEdit_textChanged(self, txt): 68 def on_hostEdit_textChanged(self, txt):
68 """ 69 """
69 Private slot to handle changes of the host edit. 70 Private slot to handle changes of the host edit.

eric ide

mercurial