67 """ |
67 """ |
68 Private method to build a dictionary of modules contained in the package. |
68 Private method to build a dictionary of modules contained in the package. |
69 |
69 |
70 @return dictionary of modules contained in the package. |
70 @return dictionary of modules contained in the package. |
71 """ |
71 """ |
|
72 import Utilities.ModuleParser |
72 extensions = Preferences.getPython("PythonExtensions") + \ |
73 extensions = Preferences.getPython("PythonExtensions") + \ |
73 Preferences.getPython("Python3Extensions") |
74 Preferences.getPython("Python3Extensions") |
74 moduleDict = {} |
75 moduleDict = {} |
75 modules = [] |
76 modules = [] |
76 for ext in Preferences.getPython("PythonExtensions") + \ |
77 for ext in Preferences.getPython("PythonExtensions") + \ |
83 prog = 0 |
84 prog = 0 |
84 progress = QProgressDialog(self.trUtf8("Parsing modules..."), |
85 progress = QProgressDialog(self.trUtf8("Parsing modules..."), |
85 None, 0, tot, self.parent()) |
86 None, 0, tot, self.parent()) |
86 progress.show() |
87 progress.show() |
87 QApplication.processEvents() |
88 QApplication.processEvents() |
88 import Utilities.ModuleParser |
|
89 for module in modules: |
89 for module in modules: |
90 progress.setValue(prog) |
90 progress.setValue(prog) |
91 QApplication.processEvents() |
91 QApplication.processEvents() |
92 prog = prog + 1 |
92 prog = prog + 1 |
93 try: |
93 try: |