def set_drag_dest_row(self, row, position): """Works like set_drag_dest_row, except row can be None which will cause the treeview to set the drag indicator below the bottom of the TreeView. This is slightly different than below the last row of the tree, since the last row might be a child row. set_drag_dest_at_bottom() makes the TreeView indicate that the drop will be appended as a top-level row. """ if row is not None: gtk.TreeView.set_drag_dest_row(self, row, position) self.set_drag_dest_at_bottom(False) else: pygtkhacks.unset_tree_view_drag_dest_row(self) self.set_drag_dest_at_bottom(True)
def unset_drag_dest_row(self): pygtkhacks.unset_tree_view_drag_dest_row(self) self.set_drag_dest_at_bottom(False)