204 |
206 |
205 # distribute each generation across the width and the |
207 # distribute each generation across the width and the |
206 # generations across height |
208 # generations across height |
207 y = 10.0 |
209 y = 10.0 |
208 for currentWidth, currentHeight, generation in \ |
210 for currentWidth, currentHeight, generation in \ |
209 itertools.zip_longest(widths, heights, generations): |
211 zip_longest(widths, heights, generations): |
210 x = 10.0 |
212 x = 10.0 |
211 # whiteSpace is the space between any two elements |
213 # whiteSpace is the space between any two elements |
212 whiteSpace = (width - currentWidth - 20) / (len(generation) - 1.0 or 2.0) |
214 whiteSpace = (width - currentWidth - 20) / (len(generation) - 1.0 or 2.0) |
213 for className in generation: |
215 for className in generation: |
214 cw = self.__getCurrentShape(className) |
216 cw = self.__getCurrentShape(className) |