Inheritance diagram for wx.DropSource:
This class represents a source for a drag and drop operation.
The return values of most of the DnD operations, termed wx.DragResult, can be sketched as follows:
Flag | Description |
---|---|
wx.DragError | Error prevented the d&d operation from completing |
wx.DragNone | Drag target didn’t accept the data |
wx.DragCopy | The data was successfully copied |
wx.DragMove | The data was successfully moved (MSW only) |
wx.DragLink | Operation is a drag-link |
``wx.DragCancel` | The operation was cancelled by user (not an error) |
See also
Constructor for wx.DropSource.
Parameters:
Returns:
Do it (call this in response to a mouse button press, for example). This starts the drag-and-drop operation which will terminate when the user releases the mouse.
Parameters:
Returns:
int
Returns the wx.DataObject object that has been assigned previously.
Returns:
Overridable: you may give some custom UI feedback during the drag and drop operation in this function. It is called on each mouse move, so your implementation must not be too slow.
Parameters:
Returns:
bool
Set the icon to use for a certain drag result.
Parameters:
Sets the data wx.DataObject associated with the drop source. This will not delete any previously associated data.
Parameters: