Gtk.TreeDragDest¶
- Implementations:
Methods¶
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gtk.TreeDragDest¶
- Bases:
- Structure:
- drag_data_received(dest, selection_data)[source]¶
- Parameters:
dest (
Gtk.TreePath
) – row to drop in front ofselection_data (
Gtk.SelectionData
) – data to drop
- Returns:
whether a new row was created before position dest
- Return type:
Asks the
Gtk.TreeDragDest
to insert a row before the path dest, deriving the contents of the row from selection_data. 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!
- row_drop_possible(dest_path, selection_data)[source]¶
- Parameters:
dest_path (
Gtk.TreePath
) – destination rowselection_data (
Gtk.SelectionData
) – the data being dragged
- Returns:
True
if a drop is possible before dest_path- Return type:
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 selection_data 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.
- do_drag_data_received(dest, selection_data) virtual¶
- Parameters:
dest (
Gtk.TreePath
) – row to drop in front ofselection_data (
Gtk.SelectionData
) – data to drop
- Returns:
whether a new row was created before position dest
- Return type:
Asks the
Gtk.TreeDragDest
to insert a row before the path dest, deriving the contents of the row from selection_data. 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!
- do_row_drop_possible(dest_path, selection_data) virtual¶
- Parameters:
dest_path (
Gtk.TreePath
) – destination rowselection_data (
Gtk.SelectionData
) – the data being dragged
- Returns:
True
if a drop is possible before dest_path- Return type:
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 selection_data 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.