def prepare_settings(self, setting_values):
assert (len(setting_values) - 6) % 2 == 0
self.outlines = []
for i in range((len(setting_values) - 6)/2):
self.add_outline()
def settings(self):
result = [self.blank_image, self.image_name, self.output_image_name,
self.wants_color, self.max_type, self.line_width]
for outline in self.outlines:
After Change
if len(self.outlines) == 0:
self.add_outline(False)
elif len(self.outlines) > num_settings:
del self.outlines[num_settings:]
else:
for i in range(len(self.outlines), num_settings):
self.add_outline()