src/eric7/Project/UicLoadUi6.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9278
36448ca469c2
child 9560
abffba70297f
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
5 5
6 """ 6 """
7 Module to get the object name, class name or signatures of a Qt form (*.ui). 7 Module to get the object name, class name or signatures of a Qt form (*.ui).
8 """ 8 """
9 9
10 import contextlib
11 import json
10 import os 12 import os
11 import sys 13 import sys
12 import json
13 import xml.etree.ElementTree # secok 14 import xml.etree.ElementTree # secok
14 import contextlib
15 15
16 try: 16 try:
17 from PyQt6 import uic
17 from PyQt6.QtCore import QByteArray, QMetaMethod 18 from PyQt6.QtCore import QByteArray, QMetaMethod
18 from PyQt6.QtGui import QAction 19 from PyQt6.QtGui import QAction
19 from PyQt6.QtWidgets import QApplication, QWidget 20 from PyQt6.QtWidgets import QApplication, QWidget
20 from PyQt6 import uic
21 except ModuleNotFoundError: 21 except ModuleNotFoundError:
22 print("PyQt6 could not be found.") 22 print("PyQt6 could not be found.")
23 sys.exit(1) 23 sys.exit(1)
24 except ImportError as err: 24 except ImportError as err:
25 print("PyQt6 could not be imported. Issue: {0}".format(str(err))) 25 print("PyQt6 could not be imported. Issue: {0}".format(str(err)))

eric ide

mercurial