# HG changeset patch # User KarstenBock@gmx.net # Date 1317909402 -7200 # Node ID 6036886b0dea3be6e7944839e44d10486fbd5eec # Parent 3fc7cfa80771ac62e9419c1e5aaf87fb5c5b7e24 Added setDragData method. diff -r 3fc7cfa80771 -r 6036886b0dea src/parpg/gui/containergui_base.py --- a/src/parpg/gui/containergui_base.py Wed Oct 05 12:59:22 2011 +0200 +++ b/src/parpg/gui/containergui_base.py Thu Oct 06 15:56:42 2011 +0200 @@ -64,6 +64,15 @@ pass + def setDragData(self, drag_item, down_image, up_image, container): + """Set the dragging data""" + # set the mouse cursor to be the widget's image + self.controller.setMouseCursor(up_image.source, down_image.source) + data_drag.dragged_item = drag_item + data_drag.dragged_image = up_image.source + data_drag.dragging = True + data_drag.source_container = container + def createMenuItems(self, item, actions): """Creates context menu items for all classes based on ContainerGUI""" menu_actions = []