Graphics/UMLClassDiagram.py

changeset 35
42f5cfc851da
parent 13
1af94a91f439
child 413
3d82e6eb3516
child 792
a13346916170
diff -r 93367928a93b -r 42f5cfc851da Graphics/UMLClassDiagram.py
--- a/Graphics/UMLClassDiagram.py	Thu Jan 07 14:41:37 2010 +0000
+++ b/Graphics/UMLClassDiagram.py	Thu Jan 07 15:06:43 2010 +0000
@@ -7,6 +7,8 @@
 Module implementing a dialog showing a UML like class diagram.
 """
 
+import itertools
+
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
@@ -184,7 +186,7 @@
         # generations across height
         y = 10.0
         for currentWidth, currentHeight, generation in \
-                map(None, widths, heights, generations):
+                itertools.zip_longest(widths, heights, generations):
             x = 10.0
             # whiteSpace is the space between any two elements
             whiteSpace = (width - currentWidth - 20) / (len(generation) - 1.0 or 2.0)

eric ide

mercurial