You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
292 B
Python

from sugar.scene.Actor import Actor
class Group(Actor):
def __init__(self):
self._actors = []
def add(self, actor):
self._actors.append(actor)
def remove(self, actor):
self._actors.remove(actor)
def render(self, drawable):
for actor in self._actors:
actor.render(drawable)