diff -r 45e7bb09c120 -r 80c06d472826 src/eric7/EricNetwork/EricSslInfoWidget.py --- a/src/eric7/EricNetwork/EricSslInfoWidget.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/EricNetwork/EricSslInfoWidget.py Tue Oct 18 16:06:21 2022 +0200 @@ -11,8 +11,8 @@ from PyQt6.QtWidgets import QMenu, QGridLayout, QLabel, QSizePolicy from PyQt6.QtNetwork import QSsl, QSslConfiguration, QSslCertificate -import UI.PixmapCache -import Utilities +from eric7.EricGui import EricPixmapCache +from eric7 import Utilities class EricSslInfoWidget(QMenu): @@ -61,7 +61,7 @@ label.setWordWrap(True) if cert.isNull(): label.setText(self.tr("Warning: this site is NOT carrying a certificate.")) - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityLow32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityLow32")) else: valid = not cert.isBlacklisted() if valid: @@ -72,10 +72,10 @@ " and has been verified by:\n{0}" ).format(Utilities.decodeString(txt)) ) - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityHigh32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityHigh32")) else: label.setText(self.tr("The certificate for this site is NOT valid.")) - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityLow32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityLow32")) layout.addWidget(label, rows, 1) rows += 1 @@ -113,7 +113,7 @@ ) ) layout.addWidget(label, rows, 1) - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityLow32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityLow32")) rows += 1 else: label = QLabel(self) @@ -128,25 +128,25 @@ proto = cipher.protocol() if proto == QSsl.SslProtocol.TlsV1_0: sslVersion = "TLS v1.0" - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityLow32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityLow32")) elif proto == QSsl.SslProtocol.TlsV1_1: sslVersion = "TLS v1.1" - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityMedium32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityMedium32")) elif proto == QSsl.SslProtocol.TlsV1_2: sslVersion = "TLS v1.2" - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityHigh32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityHigh32")) elif proto == QSsl.SslProtocol.TlsV1_3: sslVersion = "TLS v1.3" - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityHigh32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityHigh32")) elif proto == QSsl.SslProtocol.DtlsV1_0: sslVersion = "DTLS v1.0" - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityLow32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityLow32")) elif proto == QSsl.SslProtocol.DtlsV1_2: sslVersion = "DTLS v1.2" - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityHigh32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityHigh32")) else: sslVersion = self.tr("unknown") - imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityLow32")) + imageLabel.setPixmap(EricPixmapCache.getPixmap("securityLow32")) rows += 1 label = QLabel(self)