def __init__(self, strarray, prefix="", suffix=""): Group.__init__(self) mobject = Group( *[ImageMobject(prefix + each + suffix) for each in strarray]) self.add(*mobject) self.name = mobject.name self.__class__ = mobject.__class__
def __init__(self, mobjs=None): Group.__init__(self) if mobjs == None: try: self.add( *ImageMobjectGroup(char.mod('%01d', range(0, 10)), "sidewayoutput\\sidewayoutput2020yt")) except: self.add(*ImageMobjectGroup(char.mod('%01d', range(9, -1, -1)), "001\\"))