Graphics/PackageDiagram.py

changeset 35
42f5cfc851da
parent 28
dde24fc7f7ba
child 40
c2e5472b112c
--- a/Graphics/PackageDiagram.py	Thu Jan 07 14:41:37 2010 +0000
+++ b/Graphics/PackageDiagram.py	Thu Jan 07 15:06:43 2010 +0000
@@ -9,6 +9,7 @@
 
 import glob
 import os.path
+import itertools
 
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
@@ -233,7 +234,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