Graphics/UMLClassDiagram.py

changeset 564
b3d966393ba9
parent 483
ca7d8599a575
child 791
9ec2ac20e54e
--- a/Graphics/UMLClassDiagram.py	Sat Sep 04 19:51:19 2010 +0200
+++ b/Graphics/UMLClassDiagram.py	Sat Sep 04 19:51:48 2010 +0200
@@ -66,7 +66,7 @@
             module = Utilities.ModuleParser.readModule(self.file)
         except ImportError:
             ct = QGraphicsTextItem(None, self.scene)
-            ct.setHtml(\
+            ct.setHtml(
                 self.trUtf8("The module <b>'{0}'</b> could not be found.")
                     .format(self.file))
             return
@@ -103,11 +103,11 @@
                 else:
                     if className in module.classes:
                         # this is a local class (defined in this module)
-                        self.__addLocalClass(\
+                        self.__addLocalClass(
                             className, module.classes[className], 0, 0)
                     elif className in module.modules:
                         # this is a local module (defined in this module)
-                        self.__addLocalClass(\
+                        self.__addLocalClass(
                             className, module.modules[className], 0, 0, True)
                     else:
                         self.__addExternalClass(className, 0, 0)
@@ -127,7 +127,7 @@
             self.__createAssociations(routes)
         else:
             ct = QGraphicsTextItem(None, self.scene)
-            ct.setHtml(\
+            ct.setHtml(
                 self.trUtf8("The module <b>'{0}'</b> does not contain any classes.")\
                 .format(self.file))
         
@@ -243,7 +243,7 @@
         """
         for route in routes:
             if len(route) > 1:
-                assoc = AssociationItem(\
+                assoc = AssociationItem(
                         self.__getCurrentShape(route[1]),
                         self.__getCurrentShape(route[0]),
                         Generalisation)
@@ -262,4 +262,4 @@
         """
         self.allClasses.clear()
         self.allModules.clear()
-        self.__buildClasses()
+        self.__buildClasses()
\ No newline at end of file

eric ide

mercurial