def set_drop_target(obj, root, designer, inspector):
    "Recursively create and set the drop target for obj and childs"
    if obj._meta.container:
        dt = ToolBoxDropTarget(obj, root, designer=designer, 
                                          inspector=inspector)
        obj.drop_target = dt
    for child in obj:
        set_drop_target(child, root, designer, inspector)
def set_drop_target ( obj , root , designer , inspector ) : if obj . _meta . container : dt = ToolBoxDropTarget ( obj , root , designer = designer , inspector = inspector ) obj . drop_target = dt for child in obj : set_drop_target ( child , root , designer , inspector )
Recursively create and set the drop target for obj and childs