text part in meme pipeline

This commit is contained in:
klemek
2020-04-28 18:11:09 +02:00
parent dffdf656dc
commit a7610c2f01
6 changed files with 86 additions and 29 deletions
+5
View File
@@ -57,6 +57,11 @@ class Text:
self.align = None
self.position = None
def variant(self, text: str) -> 'Text':
new_text = copy.deepcopy(self)
new_text.text = text
return new_text
def update(self, base: 'Text'):
for prop in Text.base_properties:
if getattr(self, prop) is None: