QScintilla/ShellHistoryDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3034
7ce719013078
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
44 def on_historyList_itemSelectionChanged(self): 44 def on_historyList_itemSelectionChanged(self):
45 """ 45 """
46 Private slot to handle a change of the selection. 46 Private slot to handle a change of the selection.
47 """ 47 """
48 selected = len(self.historyList.selectedItems()) > 0 48 selected = len(self.historyList.selectedItems()) > 0
49 self.copyButton.setEnabled(selected and \ 49 self.copyButton.setEnabled(selected and
50 self.vm.activeWindow() is not None) 50 self.vm.activeWindow() is not None)
51 self.deleteButton.setEnabled(selected) 51 self.deleteButton.setEnabled(selected)
52 self.executeButton.setEnabled(selected) 52 self.executeButton.setEnabled(selected)
53 53
54 @pyqtSlot(QListWidgetItem) 54 @pyqtSlot(QListWidgetItem)

eric ide

mercurial