eric7/Project/UicLoadUi5.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8551
5611421bc868
--- a/eric7/Project/UicLoadUi5.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/Project/UicLoadUi5.py	Sun May 16 20:07:24 2021 +0200
@@ -14,15 +14,16 @@
 import contextlib
 
 try:
-    from PyQt5.QtCore import QMetaMethod, QByteArray
-    from PyQt5.QtWidgets import QAction, QWidget, QApplication
-    from PyQt5 import uic
+    from PyQt6.QtCore import QMetaMethod, QByteArray
+    from PyQt6.QtGui import QAction
+    from PyQt6.QtWidgets import QWidget, QApplication
+    from PyQt6 import uic
 except ImportError:
     print("PyQt5 could not be found.")
     sys.exit(1)
 
 with contextlib.suppress(ImportError):
-    from PyQt5 import QtWebEngineWidgets    # __IGNORE_WARNING__
+    from PyQt6 import QtWebEngineWidgets    # __IGNORE_WARNING__
 
 sys.path.append(os.path.dirname(os.path.dirname(__file__)))
 # add the eric package directory

eric ide

mercurial