Method summary
- __init__(self, handler)
- OnData(self, x, y, default_drag_result)
- OnDragOver(self, x, y, default_drag_result)
- OnDrop(self, x, y)
- OnLeave(self)
Methods
- __init__(self, handler)
Constructor
The handler can be either a function that will be called when any data is dropped onto the target, or an instance that supports the 'wx_drag_over' and 'wx_dropped_on' methods. The latter case allows the target to veto the drop.
- OnData(self, x, y, default_drag_result)
Called when OnDrop returns True.
- OnDragOver(self, x, y, default_drag_result)
Called when a data object is being dragged over the target.
- OnDrop(self, x, y)
Called when the user drops a data object on the target.
Return 'False' to veto the operation.
- OnLeave(self)
Called when the mouse leaves the drop target.