add rename() method for Pattern

This commit is contained in:
Jan Petykiewicz 2020-07-08 18:32:19 -07:00
parent f3a1db30c5
commit 1ae9225130

View File

@ -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,