add rename() method for Pattern
This commit is contained in:
parent
f3a1db30c5
commit
1ae9225130
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue