42 for col in range(self.networksList.columnCount()): |
42 for col in range(self.networksList.columnCount()): |
43 self.networksList.resizeColumnToContents(col) |
43 self.networksList.resizeColumnToContents(col) |
44 |
44 |
45 def __checkButtons(self): |
45 def __checkButtons(self): |
46 """ |
46 """ |
47 Public slot to set the enabled state of the buttons. |
47 Private slot to set the enabled state of the buttons. |
48 """ |
48 """ |
49 enable = True |
49 enable = True |
50 selectedItems = self.networksList.selectedItems() |
50 selectedItems = self.networksList.selectedItems() |
51 if len(selectedItems) == 0: |
51 if len(selectedItems) == 0: |
52 enable = False |
52 enable = False |
117 self.__checkButtons() |
117 self.__checkButtons() |
118 |
118 |
119 @pyqtSlot() |
119 @pyqtSlot() |
120 def on_networksList_itemSelectionChanged(self): |
120 def on_networksList_itemSelectionChanged(self): |
121 """ |
121 """ |
122 Privat slot to handle changes of the selection of networks. |
122 Private slot to handle changes of the selection of networks. |
123 """ |
123 """ |
124 self.__checkButtons() |
124 self.__checkButtons() |
125 |
125 |
126 @pyqtSlot() |
126 @pyqtSlot() |
127 def on_newButton_clicked(self): |
127 def on_newButton_clicked(self): |