BaseItem.input.set_item_drag method

set_item_drag(self, target: BaseItem, callback: Callable[[], None]) -> None:

Creates a drag interaction which causes this item to be draggable on the target.

Parameters

  • target: BaseItem

    item to use as drag surface.

  • callback: Callable[[], None]

    function to call when the drag interaction ends.