Add an assets property to SpriteObject
This commit is contained in:
parent
1127cc0a19
commit
bb68e9a85e
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue