Mercurial > parpg-core
changeset 151:6036886b0dea
Added setDragData method.
author | KarstenBock@gmx.net |
---|---|
date | Thu, 06 Oct 2011 15:56:42 +0200 |
parents | 3fc7cfa80771 |
children | df3896fe2bf8 |
files | src/parpg/gui/containergui_base.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 = []