1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Wraps information related to drag and drop operation."""
17
18
20 """DragAndDropEvent wraps information related to drag and drop operation.
21 It is passed by terminal implementation for L{DropHandler.drop} and
22 L{AcceptCriterion.accept} methods.
23
24 DragAndDropEvent instances contains both the dragged data in
25 L{Transferable} (generated by L{DragSource} and details
26 about the current drop event in L{TargetDetails} (generated by
27 L{DropTarget}.
28 """
29
30 - def __init__(self, transferable, dropTargetDetails):
31 self._transferable = transferable
32 self._dropTargetDetails = dropTargetDetails
33
34
36 """@return: the Transferable instance representing the data dragged
37 in this drag and drop event
38 """
39 return self._transferable
40
41
43 """@return: the TargetDetails containing drop target related details
44 of drag and drop operation
45 """
46 return self._dropTargetDetails
47