UicLoadUi5: corrected the import statements back to PyQt5. eric7

Sun, 29 Aug 2021 12:07:44 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 29 Aug 2021 12:07:44 +0200
branch
eric7
changeset 8551
5611421bc868
parent 8550
575e640836b2
child 8552
f9cf1ff5126a

UicLoadUi5: corrected the import statements back to PyQt5.

eric7/Project/UicLoadUi5.py file | annotate | diff | comparison | revisions
diff -r 575e640836b2 -r 5611421bc868 eric7/Project/UicLoadUi5.py
--- a/eric7/Project/UicLoadUi5.py	Sun Aug 29 11:38:17 2021 +0200
+++ b/eric7/Project/UicLoadUi5.py	Sun Aug 29 12:07:44 2021 +0200
@@ -14,16 +14,16 @@
 import contextlib
 
 try:
-    from PyQt6.QtCore import QMetaMethod, QByteArray
-    from PyQt6.QtGui import QAction
-    from PyQt6.QtWidgets import QWidget, QApplication
-    from PyQt6 import uic
+    from PyQt5.QtCore import QMetaMethod, QByteArray
+    from PyQt5.QtGui import QAction
+    from PyQt5.QtWidgets import QWidget, QApplication
+    from PyQt5 import uic
 except ImportError:
     print("PyQt5 could not be found.")
     sys.exit(1)
 
 with contextlib.suppress(ImportError):
-    from PyQt6 import QtWebEngineWidgets    # __IGNORE_WARNING__
+    from PyQt5 import QtWebEngineWidgets    # __IGNORE_WARNING__
 
 sys.path.append(os.path.dirname(os.path.dirname(__file__)))
 # add the eric package directory

eric ide

mercurial