12 import os |
12 import os |
13 |
13 |
14 from PyQt6.QtCore import pyqtSlot, QObject, QCoreApplication |
14 from PyQt6.QtCore import pyqtSlot, QObject, QCoreApplication |
15 from PyQt6.QtWidgets import QInputDialog |
15 from PyQt6.QtWidgets import QInputDialog |
16 |
16 |
17 from EricWidgets.EricApplication import ericApp |
17 from eric7.EricWidgets.EricApplication import ericApp |
18 |
18 |
19 import UI.PixmapCache |
19 from eric7.EricGui import EricPixmapCache |
20 import Preferences |
20 from eric7 import Preferences |
21 |
21 |
22 |
22 |
23 SupportedBoards = { |
23 SupportedBoards = { |
24 "esp": { |
24 "esp": { |
25 "ids": [ |
25 "ids": [ |
389 # return a generic MicroPython icon |
389 # return a generic MicroPython icon |
390 "micropython48" |
390 "micropython48" |
391 ) |
391 ) |
392 |
392 |
393 if iconFormat: |
393 if iconFormat: |
394 return UI.PixmapCache.getIcon(iconName) |
394 return EricPixmapCache.getIcon(iconName) |
395 else: |
395 else: |
396 return UI.PixmapCache.getPixmap(iconName) |
396 return EricPixmapCache.getPixmap(iconName) |
397 |
397 |
398 |
398 |
399 def getDevice(deviceType, microPythonWidget, vid, pid): |
399 def getDevice(deviceType, microPythonWidget, vid, pid): |
400 """ |
400 """ |
401 Public method to instantiate a specific MicroPython device interface. |
401 Public method to instantiate a specific MicroPython device interface. |