eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/HgShelvesSelectionDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
29 self.setupUi(self) 29 self.setupUi(self)
30 30
31 self.message.setText(message) 31 self.message.setText(message)
32 self.shelvesList.addItems(shelveNames) 32 self.shelvesList.addItems(shelveNames)
33 33
34 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 34 self.buttonBox.button(
35 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
35 36
36 @pyqtSlot() 37 @pyqtSlot()
37 def on_shelvesList_itemSelectionChanged(self): 38 def on_shelvesList_itemSelectionChanged(self):
38 """ 39 """
39 Private slot to enabled the OK button if items have been selected. 40 Private slot to enabled the OK button if items have been selected.
40 """ 41 """
41 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( 42 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
42 len(self.shelvesList.selectedItems()) > 0) 43 len(self.shelvesList.selectedItems()) > 0)
43 44
44 def getSelectedShelves(self): 45 def getSelectedShelves(self):
45 """ 46 """
46 Public method to retrieve the selected shelve names. 47 Public method to retrieve the selected shelve names.

eric ide

mercurial