eric6/MicroPython/MicrobitDevices.py

changeset 8143
2c730d5fd177
parent 8117
aaa5e0eacd4e
child 8218
7c09585bd960
diff -r 27f636beebad -r 2c730d5fd177 eric6/MicroPython/MicrobitDevices.py
--- a/eric6/MicroPython/MicrobitDevices.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/MicroPython/MicrobitDevices.py	Tue Mar 02 17:17:09 2021 +0100
@@ -268,7 +268,7 @@
                     )
         elif len(deviceDirectories) == 1:
             downloadsPath = QStandardPaths.standardLocations(
-                QStandardPaths.DownloadLocation)[0]
+                QStandardPaths.StandardLocation.DownloadLocation)[0]
             firmware = E5FileDialog.getOpenFileName(
                 self.microPython,
                 self.tr("Flash MicroPython/Firmware"),
@@ -334,7 +334,7 @@
                 self.microPython,
                 title,
                 self.tr("Enter a file name on the device:"),
-                QLineEdit.Normal,
+                QLineEdit.EchoMode.Normal,
                 scriptName)
             if not ok or not bool(scriptName):
                 return

eric ide

mercurial