diff -r 22d519ab13df -r 5316e335722f eric6/MicroPython/CircuitPythonDevices.py --- 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")) + ]