TTkDrag🌶️
- class TTkDrag(**kwargs)[source]🌶️
Bases:
TTkDnDMethods🌶️
- 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() _TTkDragDisplayWidget[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 | TTkCanvas) None[source]🌶️
Sets the pixmap used to represent the data in a drag and drop operation. If a
TTkWidgetis provided as pixmap, its default rendering will be used in the pixmapTTkCanvas.