Add an assets property to SpriteObject

This commit is contained in:
Sayamindu Dasgupta 2013-06-19 20:22:40 -04:00
parent 1127cc0a19
commit bb68e9a85e

View file

@ -61,6 +61,9 @@ class Sprite(ScratchObj):
def sounds(self):
return [ScratchMediaObj(x) for x in self._d['sounds']]
@property
def assets(self):
return self.sounds + self.costumes
class Project(ScratchObj):
def __init__(self, project_id):