Update README and copying the rect won't add prefix string

This commit is contained in:
tzutalin
2017-03-01 20:33:14 +08:00
parent 5a9439be80
commit ce853362e5
3 changed files with 14 additions and 3 deletions
+1 -2
View File
@@ -58,7 +58,6 @@ class Shape(object):
self.line_color = line_color
def close(self):
assert len(self.points) > 2
self._closed = True
def reachMaxPoints(self):
@@ -163,7 +162,7 @@ class Shape(object):
self._highlightIndex = None
def copy(self):
shape = Shape("Copy of %s" % self.label)
shape = Shape("%s" % self.label)
shape.points = [p for p in self.points]
shape.fill = self.fill
shape.selected = self.selected