You can use gtk.drop_target.DropTarget to implement a drop destination
gtk.tree_drag_dest_mixin
Module for TreeDragDest interface mixin
Templates 2
Interface for Drag-and-Drop destinations in gtk.tree_view.TreeView.
Deprecated
Asks the gtk.tree_drag_dest.TreeDragDest to insert a row before the path dest, deriving the contents of the row from value. If dest is outside the tree so that inserting before it is impossible, false will be returned. Also, false may be returned if the new row is not created for some model-specific reason. Should robustly handle a dest no longer found in the model!
Parameters
dest | row to drop in front of |
value | data to drop |
Returns
Deprecated
Determines whether a drop is possible before the given dest_path, at the same depth as dest_path. i.e., can we drop the data in value at that location. dest_path does not have to exist; the return value will almost certainly be false if the parent of dest_path doesn’t exist, though.
Parameters
destPath | destination row |
value | the data being dropped |
Returns
Deprecated
Fluent builder implementation template for gtk.tree_drag_dest.TreeDragDest