src/eric7/WebBrowser/OpenSearch/OpenSearchDialog.py

branch
eric7
changeset 10436
f6881d10e995
parent 10069
435cc5875135
child 10439
21c28b0f9e41
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
23 23
24 def __init__(self, parent=None): 24 def __init__(self, parent=None):
25 """ 25 """
26 Constructor 26 Constructor
27 27
28 @param parent reference to the parent object (QWidget) 28 @param parent reference to the parent object
29 @type QWidget
29 """ 30 """
30 super().__init__(parent) 31 super().__init__(parent)
31 self.setupUi(self) 32 self.setupUi(self)
32 33
33 self.setModal(True) 34 self.setModal(True)
117 @pyqtSlot(QItemSelection, QItemSelection) 118 @pyqtSlot(QItemSelection, QItemSelection)
118 def __selectionChanged(self, selected, deselected): 119 def __selectionChanged(self, selected, deselected):
119 """ 120 """
120 Private slot to handle a change of the selection. 121 Private slot to handle a change of the selection.
121 122
122 @param selected item selection of selected items (QItemSelection) 123 @param selected item selection of selected items
123 @param deselected item selection of deselected items (QItemSelection) 124 @type QItemSelection
125 @param deselected item selection of deselected items
126 @type QItemSelection
124 """ 127 """
125 self.editButton.setEnabled( 128 self.editButton.setEnabled(
126 len(self.enginesTable.selectionModel().selectedRows()) <= 1 129 len(self.enginesTable.selectionModel().selectedRows()) <= 1
127 ) 130 )

eric ide

mercurial