diff -r 1b59c4ba121e -r 8cd4d08fa9f6 Graphics/ApplicationDiagram.py --- a/Graphics/ApplicationDiagram.py Fri Mar 11 08:55:14 2011 +0100 +++ b/Graphics/ApplicationDiagram.py Fri Mar 11 16:51:57 2011 +0100 @@ -20,18 +20,19 @@ import Utilities.ModuleParser import Utilities + class ApplicationDiagram(UMLDialog): """ Class implementing a dialog showing an imports diagram of the application. """ - def __init__(self, project, parent = None, name = None, noModules = False): + def __init__(self, project, parent=None, name=None, noModules=False): """ Constructor @param project reference to the project object @param parent parent widget of the view (QWidget) @param name name of the view widget (string) - @keyparam noModules flag indicating, that no module names should be + @keyparam noModules flag indicating, that no module names should be shown (boolean) """ self.project = project @@ -70,7 +71,7 @@ prog += 1 if module.endswith("__init__.py"): continue - try: + try: mod = Utilities.ModuleParser.readModule(module) except ImportError: continue @@ -220,7 +221,7 @@ """ modules.sort() pm = PackageModel(name, modules) - pw = PackageItem(pm, x, y, noModules = self.noModules, scene = self.scene) + pw = PackageItem(pm, x, y, noModules=self.noModules, scene=self.scene) return pw def __createAssociations(self, shapes): @@ -247,4 +248,4 @@ """ Method to relayout the diagram. """ - self.__buildPackages() \ No newline at end of file + self.__buildPackages()