182 |
184 |
183 # distribute each generation across the width and the |
185 # distribute each generation across the width and the |
184 # generations across height |
186 # generations across height |
185 y = 10.0 |
187 y = 10.0 |
186 for currentWidth, currentHeight, generation in \ |
188 for currentWidth, currentHeight, generation in \ |
187 map(None, widths, heights, generations): |
189 itertools.zip_longest(widths, heights, generations): |
188 x = 10.0 |
190 x = 10.0 |
189 # whiteSpace is the space between any two elements |
191 # whiteSpace is the space between any two elements |
190 whiteSpace = (width - currentWidth - 20) / (len(generation) - 1.0 or 2.0) |
192 whiteSpace = (width - currentWidth - 20) / (len(generation) - 1.0 or 2.0) |
191 for className in generation: |
193 for className in generation: |
192 cw = self.__getCurrentShape(className) |
194 cw = self.__getCurrentShape(className) |