def _on_release ( self , event ) : if self . _drag_cols or self . _drag_rows : self . _visual_drag . place_forget ( ) self . _dragged_col = None self . _dragged_row = None
stop moving objects canvas python
Stop dragging .
def _on_release(self, event):
        """Stop dragging."""
        if self._drag_cols or self._drag_rows:
            self._visual_drag.place_forget()
            self._dragged_col = None
            self._dragged_row = None