Dragging does not work

i used dragging in python it does not work

drag1 and drag2 are not dragging to the base, they only can be dragged outside where i want it to drag.pls help