TTkDrag🌶️
- class TTkDrag(**kwargs)[source]🌶️
Bases:
TTkDnD
Methods🌶️
- getDragEnterEvent(evt: TTkMouseEvent) TTkDnDEvent [source]🌶️
Returns a Drag and Drop event for the DragEnter event.
- Parameters:
evt (
TTkMouseEvent
) – The mouse event- Returns:
The Drag and Drop event
- Return type:
- getDragLeaveEvent(evt: TTkMouseEvent) TTkDnDEvent [source]🌶️
Returns a Drag and Drop event for the DragLeave event.
- Parameters:
evt (
TTkMouseEvent
) – The mouse event- Returns:
The Drag and Drop event
- Return type:
- getDragMoveEvent(evt: TTkMouseEvent) TTkDnDEvent [source]🌶️
Returns a Drag and Drop event for the DragMove event.
- Parameters:
evt (
TTkMouseEvent
) – The mouse event- Returns:
The Drag and Drop event
- Return type:
- getDropEvent(evt: TTkMouseEvent) TTkDnDEvent [source]🌶️
Returns a Drag and Drop event for the Drop event.
- Parameters:
evt (
TTkMouseEvent
) – The mouse event- Returns:
The Drag and Drop event
- Return type:
- hidePixmap() None [source]🌶️
Hides the pixmap used to represent the data in a drag and drop operation.
- pixmap() TTkCanvas [source]🌶️
Returns the pixmap used to represent the data in a drag and drop operation.
- Returns:
the pixmap used to represent the data in a drag and drop operation.
- Return type:
- setPixmap(pixmap: TTkWidget) None [source]🌶️
Sets the pixmap used to represent the data in a drag and drop operation. If a
TTkWidget
is provided as pixmap, its default rendering will be used in the pixmapTTkCanvas
.