diff -r ce7a8d43429c -r f611c3b7313f eric6/MicroPython/MicrobitDevices.py --- a/eric6/MicroPython/MicrobitDevices.py Sun Aug 25 15:30:11 2019 +0200 +++ b/eric6/MicroPython/MicrobitDevices.py Mon Aug 26 12:43:26 2019 +0200 @@ -206,7 +206,7 @@ downloadsPath = QStandardPaths.standardLocations( QStandardPaths.DownloadLocation)[0] firmware = E5FileDialog.getOpenFileName( - None, + self.microPython, self.tr("Flash Custom MicroPython Firmware"), downloadsPath, self.tr("MicroPython Firmware Files (*.hex);;All Files (*)")) @@ -234,7 +234,7 @@ if not (aw.isPy3File() or aw.isPy2File()): yes = E5MessageBox.yesNo( - None, + self.microPython, self.tr("Flash Script"), self.tr("""The current editor does not contain a Python""" """ script. Flash it anyway?""")) @@ -244,7 +244,7 @@ script = aw.text().strip() if not script: E5MessageBox.warning( - self, + self.microPython, self.tr("Flash Script"), self.tr("""The script is empty. Aborting.""")) return @@ -274,7 +274,7 @@ if not (aw.isPy3File() or aw.isPy2File()): yes = E5MessageBox.yesNo( - None, + self.microPython, self.tr("Save Script as 'main.py'"), self.tr("""The current editor does not contain a Python""" """ script. Write it anyway?""")) @@ -284,7 +284,7 @@ script = aw.text().strip() if not script: E5MessageBox.warning( - self, + self.microPython, self.tr("Save Script as 'main.py'"), self.tr("""The script is empty. Aborting.""")) return @@ -299,7 +299,7 @@ out, err = self.microPython.commandsInterface().execute(commands) if err: E5MessageBox.critical( - self, + self.microPython, self.tr("Save Script as 'main.py'"), self.tr("""<p>The script could not be saved to the""" """ device.</p><p>Reason: {0}</p>""")