How to disable dragging for spline widget?

I want to limit the spline widget to a certain bounding box. In python, SetDragable is unavailable. I cannot even access the LineActor attribute and set it’s dragable property either! How to do it?