--- a/src/eric7/MicroPython/BluetoothDialogs/BluetoothController.py Tue Mar 07 16:23:03 2023 +0100 +++ b/src/eric7/MicroPython/BluetoothDialogs/BluetoothController.py Wed Mar 08 14:25:24 2023 +0100 @@ -44,6 +44,7 @@ btMenu.setTearOffEnabled(True) btMenu.addAction(self.tr("Show Bluetooth Status"), self.__showBtStatus) btMenu.addSeparator() + btMenu.addAction(self.tr("Perform Scan"), self.__scan) btMenu.addSeparator() btMenu.addAction( self.tr("Activate Bluetooth Interface"), @@ -118,3 +119,13 @@ ) except Exception as exc: self.__mpy.showError("deactivateBluetoothInterface()", str(exc)) + + @pyqtSlot() + def __scan(self): + """ + Private slot to scan for Bluetooth devices. + """ + from .BluetoothScanWindow import BluetoothScanWindow + + win = BluetoothScanWindow(self.__mpy.getDevice(), self.__mpy) + win.show()