# HG changeset patch # User KarstenBock@gmx.net # Date 1317909402 -7200 # Node ID 4826c8cbd7d87c87d91155c9dec7b12982b40560 # Parent adbcdb900fa9ea19e388d55566c7fb019e214637 Added setDragData method. diff -r adbcdb900fa9 -r 4826c8cbd7d8 gui/containergui_base.py --- a/gui/containergui_base.py Wed Oct 05 12:59:22 2011 +0200 +++ b/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 = []