src/eric7/Project/UicLoadUi5.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 sys 12 import sys
11 import json
12 import xml.etree.ElementTree # secok 13 import xml.etree.ElementTree # secok
13 import contextlib
14 14
15 try: 15 try:
16 from PyQt5 import uic
16 from PyQt5.QtCore import QByteArray, QMetaMethod 17 from PyQt5.QtCore import QByteArray, QMetaMethod
17 from PyQt5.QtWidgets import QAction, QApplication, QWidget 18 from PyQt5.QtWidgets import QAction, QApplication, QWidget
18 from PyQt5 import uic
19 except ModuleNotFoundError: 19 except ModuleNotFoundError:
20 print("PyQt5 could not be found.") 20 print("PyQt5 could not be found.")
21 sys.exit(1) 21 sys.exit(1)
22 except ImportError as err: 22 except ImportError as err:
23 print("PyQt5 could not be imported. Issue: {0}".format(str(err))) 23 print("PyQt5 could not be imported. Issue: {0}".format(str(err)))

eric ide

mercurial