DragAction

class DragAction

Used in GdkDrop and GdkDrag to indicate the actions that the destination can and should do with the dropped data.

Methods

class DragAction
is_unique(action: DragAction) bool

Checks if action represents a single action or includes multiple actions.

When action is 0 - ie no action was given, True is returned.

Parameters:

action – a GdkDragAction

Fields

class DragAction
ASK

Ask the user what to do with the data.

COPY

Copy the data.

Add a link to the data. Note that this is only useful if source and destination agree on what it means, and is not supported on all platforms.

MOVE

Move the data, i.e. first copy it, then delete it from the source using the DELETE target of the X selection protocol.