Ejemplo n.º 1
0
 def _find_by_id(self, obj_id):
     ret = InteractiveObject._find_by_id(self, obj_id)
     if not ret:
         for c in self._children:
             ret = c._find_by_id(obj_id)
             if ret is not None:
                 break
     return ret
Ejemplo n.º 2
0
 def _broadcast(self, e):
     if self._children:
         chcopy = self._children[:]
         for c in chcopy:
             c._broadcast(e)
     InteractiveObject._broadcast(self, e)
Ejemplo n.º 3
0
 def __init__(self, name=None):
     InteractiveObject.__init__(self, name)
     self._children = []
Ejemplo n.º 4
0
 def clear(self):
     InteractiveObject.clear(self)
     self.removeAllChildren()        
Ejemplo n.º 5
0
 def _on_removed(self, obj, wasonstage):
     InteractiveObject._on_removed(self, obj, wasonstage)
     for c in self._children:
         c._on_removed(obj, wasonstage)
Ejemplo n.º 6
0
 def _on_added(self, obj, isonstage):
     InteractiveObject._on_added(self, obj, isonstage)
     for c in self._children:
         c._on_added(obj, isonstage)
Ejemplo n.º 7
0
 def _get_objects_under_point(self, p, result):
     InteractiveObject._get_objects_under_point(self, p, result)
     for c in self._children:
         c._get_objects_under_point(p, result)