From 0dae300a61704160f680b6e57ebc4176a775b50c Mon Sep 17 00:00:00 2001 From: ChrisDal Date: Tue, 25 Apr 2017 09:48:32 +0200 Subject: [PATCH] Add difficult in Shape Add in shape Add in copy shape --- libs/shape.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/shape.py b/libs/shape.py index fba1863b..00b1419e 100644 --- a/libs/shape.py +++ b/libs/shape.py @@ -36,11 +36,12 @@ class Shape(object): point_size = 8 scale = 1.0 - def __init__(self, label=None, line_color=None): + def __init__(self, label=None, line_color=None,difficult = False): self.label = label self.points = [] self.fill = False self.selected = False + self.difficult = difficult self._highlightIndex = None self._highlightMode = self.NEAR_VERTEX @@ -171,6 +172,7 @@ class Shape(object): shape.line_color = self.line_color if self.fill_color != Shape.fill_color: shape.fill_color = self.fill_color + shape.difficult = self.difficult return shape def __len__(self):