code: def setBehavior(self, behavior, cascade=True):
          
          self.behavior = behavior
          if cascade:
              for obj in self.getChildren():
                  obj.parentBehavior = behavior
                  obj.autoBehavior(True)
docs: Set behavior. If cascade is True, autoBehavior all descendants.