

def __init__(self):
    super(TestLayer, self).__init__()
    (x, y) = director.get_window_size()
    self.sprite = Sprite('grossini.png', ((x // 2), (y // 2)))
    self.sprite2 = Sprite('grossini.png', ((x // 4), (y // 2)))
    self.add(self.sprite)
    self.add(self.sprite2, name='grossini')

    def rem():
        self.remove(self.sprite)
        self.remove('grossini')
    self.do((Delay(5) + CallFunc(rem)))

dataset/ETHPy150Open los-cocos/cocos/test/test_remove.py TestLayer.__init__/original