TDragEvents🌶️

class TDragEvents[source]🌶️

Bases: object

Initialize self. See help(type(self)) for accurate signature.

Methods🌶️

dragEnterEvent(evt: TTkDnDEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive drag events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkDnDEvent) – The drop event

Returns:

True if the event has been handled

Return type:

bool

dragLeaveEvent(evt: TTkDnDEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive drag events for the widget.

Note

Reimplement this function to handle this event

Note

This event is triggered only if TDragEvents.dragEnterEvent() or TDragEvents.dragMoveEvent() were previously handled inside this widget.

Parameters:

evt (TTkDnDEvent) – The drop event

Returns:

True if the event has been handled

Return type:

bool

dragMoveEvent(evt: TTkDnDEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive drag events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkDnDEvent) – The drop event

Returns:

True if the event has been handled

Return type:

bool

dropEvent(evt: TTkDnDEvent) bool[source]🌶️

This event handler, can be reimplemented in a subclass to receive drag events for the widget.

Note

Reimplement this function to handle this event

Parameters:

evt (TTkDnDEvent) – The drop event

Returns:

True if the event has been handled

Return type:

bool