--- a/src/eric7/EricNetwork/EricNetworkIcon.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/EricNetwork/EricNetworkIcon.py Tue Oct 18 16:06:21 2022 +0200 @@ -11,8 +11,8 @@ from PyQt6.QtNetwork import QNetworkInformation from PyQt6.QtWidgets import QLabel -import UI.PixmapCache -import Preferences +from eric7.EricGui import EricPixmapCache +from eric7 import Preferences class EricNetworkIcon(QLabel): @@ -68,10 +68,10 @@ ) if online: - self.setPixmap(UI.PixmapCache.getPixmap("network-online")) + self.setPixmap(EricPixmapCache.getPixmap("network-online")) tooltip = tooltip.format(self.tr("Reachable")) else: - self.setPixmap(UI.PixmapCache.getPixmap("network-offline")) + self.setPixmap(EricPixmapCache.getPixmap("network-offline")) tooltip = tooltip.format(self.tr("Not Reachable")) self.setToolTip(tooltip)