--- a/eric6/MicroPython/MicroPythonFileManagerWidget.py Mon Oct 05 19:51:55 2020 +0200 +++ b/eric6/MicroPython/MicroPythonFileManagerWidget.py Tue Oct 06 17:52:44 2020 +0200 @@ -609,7 +609,7 @@ self.__localDelDirTreeAct.setEnabled(isDir) self.__localDelFileAct.setEnabled(isFile) - self.__localMenu.exec_(self.localFileTreeWidget.mapToGlobal(pos)) + self.__localMenu.exec(self.localFileTreeWidget.mapToGlobal(pos)) @pyqtSlot() def __changeLocalDirectory(self, localDevice=False): @@ -695,7 +695,7 @@ self.tr( "Do you really want to delete this directory tree?"), [dirname]) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: try: shutil.rmtree(dirname) self.__listLocalFiles(cwdWidget.text(), @@ -733,7 +733,7 @@ self.tr( "Do you really want to delete this file?"), [filename]) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: try: os.remove(filename) self.__listLocalFiles(cwdWidget.text(), @@ -784,7 +784,7 @@ self.__devDelDirTreeAct.setEnabled(isDir) self.__devDelFileAct.setEnabled(isFile) - self.__deviceMenu.exec_(self.deviceFileTreeWidget.mapToGlobal(pos)) + self.__deviceMenu.exec(self.deviceFileTreeWidget.mapToGlobal(pos)) @pyqtSlot() def __changeDeviceDirectory(self): @@ -848,7 +848,7 @@ self.tr( "Do you really want to delete this directory?"), [dirname]) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: self.__fileManager.rmdir(dirname) @pyqtSlot() @@ -876,7 +876,7 @@ self.tr( "Do you really want to delete this directory tree?"), [dirname]) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: self.__fileManager.rmdir(dirname, recursive=True) @pyqtSlot() @@ -903,7 +903,7 @@ self.tr( "Do you really want to delete this file?"), [filename]) - if dlg.exec_() == QDialog.Accepted: + if dlg.exec() == QDialog.Accepted: self.__fileManager.delete(filename) @pyqtSlot(bool)