Fixed missing arg in self.get_parts_by_text

This commit is contained in:
Grant Sanderson
2021-03-19 10:55:04 -07:00
parent 2a1b023442
commit fd18e4a21f

View File

@ -107,8 +107,8 @@ class Text(SVGMobject):
for i, j in self.find_indexes(word)
))
def get_part_by_text(word):
parts = self.get_parts_by_text()
def get_part_by_text(self, word):
parts = self.get_parts_by_text(word)
if len(parts) > 0:
return parts[0]
else: