diff --git a/masque/pattern.py b/masque/pattern.py index 7599e06..84c274d 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -111,6 +111,10 @@ class Pattern: locked=self.locked) return new + def rename(self, name: str) -> 'Pattern': + self.name = name + return self + def append(self, other_pattern: 'Pattern') -> 'Pattern': """ Appends all shapes, labels and subpatterns from other_pattern to self's shapes,