add rename() method for Pattern
This commit is contained in:
parent
f3a1db30c5
commit
1ae9225130
@ -111,6 +111,10 @@ class Pattern:
|
|||||||
locked=self.locked)
|
locked=self.locked)
|
||||||
return new
|
return new
|
||||||
|
|
||||||
|
def rename(self, name: str) -> 'Pattern':
|
||||||
|
self.name = name
|
||||||
|
return self
|
||||||
|
|
||||||
def append(self, other_pattern: 'Pattern') -> 'Pattern':
|
def append(self, other_pattern: 'Pattern') -> 'Pattern':
|
||||||
"""
|
"""
|
||||||
Appends all shapes, labels and subpatterns from other_pattern to self's shapes,
|
Appends all shapes, labels and subpatterns from other_pattern to self's shapes,
|
||||||
|
Loading…
Reference in New Issue
Block a user