sugar-toolkit-gtk3/sugar/scene/Group.py

16 lines
292 B
Python
Raw Normal View History

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)