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