20 from E5Gui import E5MessageBox, E5FileDialog |
20 from E5Gui import E5MessageBox, E5FileDialog |
21 from E5Gui.E5Application import e5App |
21 from E5Gui.E5Application import e5App |
22 from E5Gui.E5ProcessDialog import E5ProcessDialog |
22 from E5Gui.E5ProcessDialog import E5ProcessDialog |
23 |
23 |
24 import Utilities |
24 import Utilities |
|
25 import Preferences |
25 |
26 |
26 |
27 |
27 class MicrobitDevice(MicroPythonDevice): |
28 class MicrobitDevice(MicroPythonDevice): |
28 """ |
29 """ |
29 Class implementing the device for BBC micro:bit boards. |
30 Class implementing the device for BBC micro:bit boards. |
325 """ |
326 """ |
326 Private slot to install the uflash package via pip. |
327 Private slot to install the uflash package via pip. |
327 """ |
328 """ |
328 pip = e5App().getObject("Pip") |
329 pip = e5App().getObject("Pip") |
329 pip.installPackages(["uflash"], interpreter=sys.executable) |
330 pip.installPackages(["uflash"], interpreter=sys.executable) |
|
331 |
|
332 def getDocumentationUrl(self): |
|
333 """ |
|
334 Public method to get the device documentation URL. |
|
335 |
|
336 @return documentation URL of the device |
|
337 @rtype str |
|
338 """ |
|
339 return Preferences.getMicroPython("MicrobitDocuUrl") |