eric6/MicroPython/CircuitPythonDevices.py

changeset 8053
5316e335722f
parent 7923
91e843545d9a
child 8062
8dc5acb30a8b
--- a/eric6/MicroPython/CircuitPythonDevices.py	Tue Feb 02 09:45:20 2021 +0100
+++ b/eric6/MicroPython/CircuitPythonDevices.py	Tue Feb 02 14:32:59 2021 +0100
@@ -243,12 +243,27 @@
         @rtype str
         """
         return Preferences.getMicroPython("CircuitPythonDocuUrl")
+##    
+##    def getFirmwareUrl(self):
+##        """
+##        Public method to get the device firmware download URL.
+##        
+##        @return firmware download URL of the device
+##        @rtype str
+##        """
+##        return Preferences.getMicroPython("CircuitPythonFirmwareUrl")
     
-    def getFirmwareUrl(self):
+    def getDownloadMenuEntries(self):
         """
-        Public method to get the device firmware download URL.
+        Public method to retrieve the entries for the downloads menu.
         
-        @return firmware download URL of the device
-        @rtype str
+        @return list of tuples with menu text and URL to be opened for each
+            entry
+        @rtype list of tuple of (str, str)
         """
-        return Preferences.getMicroPython("CircuitPythonFirmwareUrl")
+        return [
+            (self.tr("CircuitPython Firmware"),
+             Preferences.getMicroPython("CircuitPythonFirmwareUrl")),
+            (self.tr("CircuitPython Libraries"),
+             Preferences.getMicroPython("CircuitPythonLibrariesUrl"))
+        ]

eric ide

mercurial