TTkDnD🌶️
- class TTkDnD(data: Any = None, hotspot: tuple[int, int] = (0, 0))[source]🌶️
Bases:
object
Base class for drag and drop operations.
- Parameters:
data (Any) – The data attached to this Drag object, defaults to 0.
hotSpot (tuple[int,int]) – The offset coordinates of the visual overlay relative to the mouse drag position.
Methods🌶️
- data() Any [source]🌶️
Returns the data attached to this Drag object
- Returns:
The data attached to this Drag object
- Return type:
Any
- hotSpot() tuple[int, int] [source]🌶️
Returns the position of the hot spot relative to the top-left corner of the cursor.
- Returns:
the hotspot position
- Return type:
tuple[int,int]