def __add_contour(): self.is_fit = False cont = Contour(pil_image=self.canvas_initial_state, name='Contour' + str(len(self.contours) + 1)) if cont.size() > 0: self.contours.append(cont) cont.dump(self.project_path) self.apply_contours()