eric6/MicroPython/CircuitPythonDevices.py

changeset 8053
5316e335722f
parent 7923
91e843545d9a
child 8062
8dc5acb30a8b
equal deleted inserted replaced
8052:22d519ab13df 8053:5316e335722f
241 241
242 @return documentation URL of the device 242 @return documentation URL of the device
243 @rtype str 243 @rtype str
244 """ 244 """
245 return Preferences.getMicroPython("CircuitPythonDocuUrl") 245 return Preferences.getMicroPython("CircuitPythonDocuUrl")
246 246 ##
247 def getFirmwareUrl(self): 247 ## def getFirmwareUrl(self):
248 """ 248 ## """
249 Public method to get the device firmware download URL. 249 ## Public method to get the device firmware download URL.
250 250 ##
251 @return firmware download URL of the device 251 ## @return firmware download URL of the device
252 @rtype str 252 ## @rtype str
253 """ 253 ## """
254 return Preferences.getMicroPython("CircuitPythonFirmwareUrl") 254 ## return Preferences.getMicroPython("CircuitPythonFirmwareUrl")
255
256 def getDownloadMenuEntries(self):
257 """
258 Public method to retrieve the entries for the downloads menu.
259
260 @return list of tuples with menu text and URL to be opened for each
261 entry
262 @rtype list of tuple of (str, str)
263 """
264 return [
265 (self.tr("CircuitPython Firmware"),
266 Preferences.getMicroPython("CircuitPythonFirmwareUrl")),
267 (self.tr("CircuitPython Libraries"),
268 Preferences.getMicroPython("CircuitPythonLibrariesUrl"))
269 ]

eric ide

mercurial