11 import os |
11 import os |
12 import time |
12 import time |
13 |
13 |
14 from PyQt6.QtWidgets import QApplication, QGraphicsTextItem |
14 from PyQt6.QtWidgets import QApplication, QGraphicsTextItem |
15 |
15 |
16 from EricWidgets.EricProgressDialog import EricProgressDialog |
16 from eric7.EricWidgets.EricProgressDialog import EricProgressDialog |
17 |
17 |
18 from .UMLDiagramBuilder import UMLDiagramBuilder |
18 from .UMLDiagramBuilder import UMLDiagramBuilder |
19 |
19 |
20 import Utilities |
20 from eric7 import Preferences, Utilities |
21 import Preferences |
|
22 |
21 |
23 |
22 |
24 class ImportsDiagramBuilder(UMLDiagramBuilder): |
23 class ImportsDiagramBuilder(UMLDiagramBuilder): |
25 """ |
24 """ |
26 Class implementing a builder for imports diagrams of a package. |
25 Class implementing a builder for imports diagrams of a package. |
117 progress.setValue(prog) |
116 progress.setValue(prog) |
118 if time.monotonic() - now > 0.01: |
117 if time.monotonic() - now > 0.01: |
119 QApplication.processEvents() |
118 QApplication.processEvents() |
120 now = time.monotonic() |
119 now = time.monotonic() |
121 try: |
120 try: |
122 mod = Utilities.ModuleParser.readModule( |
121 mod = ModuleParser.readModule( |
123 module, extensions=extensions, caching=False |
122 module, extensions=extensions, caching=False |
124 ) |
123 ) |
125 except ImportError: |
124 except ImportError: |
126 continue |
125 continue |
127 else: |
126 else: |