231 |
232 |
232 # distribute each generation across the width and the |
233 # distribute each generation across the width and the |
233 # generations across height |
234 # generations across height |
234 y = 10.0 |
235 y = 10.0 |
235 for currentWidth, currentHeight, generation in \ |
236 for currentWidth, currentHeight, generation in \ |
236 map(None, widths, heights, generations): |
237 itertools.zip_longest(widths, heights, generations): |
237 x = 10.0 |
238 x = 10.0 |
238 # whiteSpace is the space between any two elements |
239 # whiteSpace is the space between any two elements |
239 whiteSpace = (width - currentWidth - 20) / (len(generation) - 1.0 or 2.0) |
240 whiteSpace = (width - currentWidth - 20) / (len(generation) - 1.0 or 2.0) |
240 for className in generation: |
241 for className in generation: |
241 cw = self.__getCurrentShape(className) |
242 cw = self.__getCurrentShape(className) |