eric7/E5Network/E5GoogleMail.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
--- a/eric7/E5Network/E5GoogleMail.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/E5Network/E5GoogleMail.py	Sun May 16 20:07:24 2021 +0200
@@ -17,8 +17,8 @@
 from google.oauth2.credentials import Credentials
 from requests_oauthlib import OAuth2Session
 
-from PyQt5.QtCore import pyqtSlot, pyqtSignal, QObject, QUrl, QUrlQuery
-from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout
+from PyQt6.QtCore import pyqtSlot, pyqtSignal, QObject, QUrl, QUrlQuery
+from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout
 
 from E5Gui.E5TextInputDialog import E5TextInputDialog
 
@@ -50,7 +50,7 @@
         
         self.__layout = QVBoxLayout(self)
         
-        from PyQt5.QtWebEngineWidgets import QWebEngineView
+        from PyQt6.QtWebEngineWidgets import QWebEngineView
         self.__browser = QWebEngineView(self)
         self.__browser.titleChanged.connect(self.__titleChanged)
         self.__browser.loadFinished.connect(self.__pageLoadFinished)
@@ -191,7 +191,7 @@
                 self.__browser.show()
                 self.__browser.load(QUrl(authorizationUrl))
             else:
-                from PyQt5.QtGui import QDesktopServices
+                from PyQt6.QtGui import QDesktopServices
                 QDesktopServices.openUrl(QUrl(authorizationUrl))
                 ok, authCode = E5TextInputDialog.getText(
                     None,

eric ide

mercurial