71 |
71 |
72 msh = self.minimumSizeHint() |
72 msh = self.minimumSizeHint() |
73 self.resize(max(self.width(), msh.width()), msh.height()) |
73 self.resize(max(self.width(), msh.width()), msh.height()) |
74 |
74 |
75 @pyqtSlot(int) |
75 @pyqtSlot(int) |
76 def on_deviceTypeComboBox_currentIndexChanged(self, index): |
76 def on_deviceTypeComboBox_currentIndexChanged(self, _index): |
77 """ |
77 """ |
78 Private slot to handle the selection of a device type. |
78 Private slot to handle the selection of a device type. |
79 |
79 |
80 @param index index of the current item |
80 @param _index index of the current item (unused) |
81 @type int |
81 @type int |
82 """ |
82 """ |
83 board = self.deviceTypeComboBox.currentData() |
83 board = self.deviceTypeComboBox.currentData() |
84 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
84 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
85 bool(board) |
85 bool(board) |