Graphics/ApplicationDiagramBuilder.py

changeset 2402
304fcefd3b04
parent 2401
4f428de32b69
child 2525
8b507a9a2d40
child 2953
703452a2876f
equal deleted inserted replaced
2401:4f428de32b69 2402:304fcefd3b04
46 """ 46 """
47 Private method to build a dictionary of modules contained in the application. 47 Private method to build a dictionary of modules contained in the application.
48 48
49 @return dictionary of modules contained in the application. 49 @return dictionary of modules contained in the application.
50 """ 50 """
51 import Utilities.ModuleParser
51 extensions = Preferences.getPython("PythonExtensions") + \ 52 extensions = Preferences.getPython("PythonExtensions") + \
52 Preferences.getPython("Python3Extensions") + ['.rb'] 53 Preferences.getPython("Python3Extensions") + ['.rb']
53 moduleDict = {} 54 moduleDict = {}
54 mods = self.project.pdata["SOURCES"] 55 mods = self.project.pdata["SOURCES"]
55 modules = [] 56 modules = []
61 progress = QProgressDialog(self.trUtf8("Parsing modules..."), 62 progress = QProgressDialog(self.trUtf8("Parsing modules..."),
62 None, 0, tot, self.parent()) 63 None, 0, tot, self.parent())
63 progress.show() 64 progress.show()
64 QApplication.processEvents() 65 QApplication.processEvents()
65 66
66 import Utilities.ModuleParser
67 for module in modules: 67 for module in modules:
68 progress.setValue(prog) 68 progress.setValue(prog)
69 QApplication.processEvents() 69 QApplication.processEvents()
70 prog += 1 70 prog += 1
71 if module.endswith("__init__.py"): 71 if module.endswith("__init__.py"):

eric ide

mercurial