gtk.TreeDragSourcean interface that manages the source data transfer for a
gtk.TreeView
drag and drop operationSynopsisgtk.TreeDragSourcegobject.GInterfacerow_draggablepathdrag_data_deletepathdrag_data_getpathselection_dataDescriptionA gtk.TreeDragSource is an interface that provides for the management of the source data for a gtk.TreeView drag and drop operation.Methodsgtk.TreeDragSource.row_draggablerow_draggablepathpath :the row from which the user is initiating a
dragReturns :True if the row can be
draggedThe row_draggable() method asks the
gtk.TreeDragSource
if the row specified by path can be used as the
source of a DND operation. If the gtk.TreeDragSource
doesn't implement this interface, the row is assumed draggable.gtk.TreeDragSource.drag_data_deletedrag_data_deletepathpath :the row that was being
draggedReturns :True if the row was
successfully deletedThe drag_data_delete() method asks the
gtk.TreeDragSource
to delete the row specified by path, because it was
moved somewhere else via drag-and-drop. This method returns
False if the deletion fails because
path no longer exists, or for some other
model-specific reason.gtk.TreeDragSource.drag_data_getdrag_data_getpathselection_datapath :the row that was draggedselection_data :a gtk.SelectionData
to fill with data from the dragged rowReturns :True if data of the required
type was providedThe drag_data_get() method asks the
gtk.TreeDragSource
to fill in the selection data object specified by
selection_data with a representation of the row
specified by path. The
selection_data target attribute gives the required
type of the data.