diff -r 169e65a6787c -r 418c2d9a767d eric6/MicroPython/MicroPythonWidget.py --- a/eric6/MicroPython/MicroPythonWidget.py Sat Feb 27 12:08:23 2021 +0100 +++ b/eric6/MicroPython/MicroPythonWidget.py Sat Feb 27 16:57:26 2021 +0100 @@ -315,8 +315,8 @@ MicroPythonDevices.getFoundDevices() ) if devices: - self.deviceInfoLabel.setText( - self.tr("%n supported device(s) detected.", "", len(devices))) + supportedMessage = self.tr( + "%n supported device(s) detected.", "", len(devices)) for index, (boardType, boardName, description, portName, vid, pid) in enumerate(sorted(devices), 1): @@ -337,11 +337,13 @@ index, pid, self.DevicePidRole) else: - self.deviceInfoLabel.setText( - self.tr("No supported devices detected.")) + supportedMessage = self.tr("No supported devices detected.") self.__unknownPorts = unknownPorts if self.__unknownPorts: + unknownMessage = self.tr( + "\n%n unknown device(s) for manual selection.", "", + len(self.__unknownPorts)) if self.deviceTypeComboBox.count(): self.deviceTypeComboBox.insertSeparator( self.deviceTypeComboBox.count()) @@ -349,6 +351,10 @@ self.deviceTypeComboBox.setItemData( self.deviceTypeComboBox.count() - 1, self.ManualMarker, self.DeviceTypeRole) + else: + unknownMessage = "" + + self.deviceInfoLabel.setText(supportedMessage + unknownMessage) index = self.deviceTypeComboBox.findText(currentDevice, Qt.MatchExactly)