comparison src/parpg/gui/containergui_base.py @ 172:2d671e57badb

Removed source_container value from data_drag.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 18:22:48 +0200
parents 6d07093e9d51
children 487fba82abff
comparison
equal deleted inserted replaced
171:7f03365c098d 172:2d671e57badb
63 the dictionary 'self.buttons' 63 the dictionary 'self.buttons'
64 @return: None""" 64 @return: None"""
65 pass 65 pass
66 66
67 67
68 def setDragData(self, drag_item, down_image, up_image, container): 68 def setDragData(self, drag_item, down_image, up_image):
69 """Set the dragging data""" 69 """Set the dragging data"""
70 # set the mouse cursor to be the widget's image 70 # set the mouse cursor to be the widget's image
71 self.controller.setMouseCursor(up_image.source, down_image.source) 71 self.controller.setMouseCursor(up_image.source, down_image.source)
72 data_drag.dragged_item = drag_item 72 data_drag.dragged_item = drag_item
73 data_drag.dragged_image = up_image.source 73 data_drag.dragged_image = up_image.source
74 data_drag.dragging = True 74 data_drag.dragging = True
75 data_drag.source_container = container
76 75
77 def createMenuItems(self, item, actions): 76 def createMenuItems(self, item, actions):
78 """Creates context menu items for all classes based on ContainerGUI""" 77 """Creates context menu items for all classes based on ContainerGUI"""
79 assert(isinstance(actions, dict)) 78 assert(isinstance(actions, dict))
80 assert(isinstance(item, General)) 79 assert(isinstance(item, General))